SlideShare une entreprise Scribd logo
1  sur  23
Télécharger pour lire hors ligne
feature
                                                          release branches
                       branches            develop                                     hot xes   master




                                                                                                          Tag




Time
                                                                                                          0.1



                           Major                                         Severe bug
                         feature for                                        xed for
        Feature
                        next release                                     production:
       for future                                                         hot x 0.2
        release

                                                          Incorporate
                                                            bug x in
                                                            develop


                                                                                                          Tag
                                                                                                          0.2



                                                                                Start of
                                                                                release
                                                                               branch for

                    From this point on,                                           1.0
                       “next release”
                    means the release
                         after 1.0


                                                                                 Only
                                                                               bug xes!




                                                          Bug xes from                                    Tag
                                                           rel. branch
                                                             may be                                       1.0
                                                          continuously
                                                          merged back
                                                          into develop




                                          Author: Vincent Driessen
                                          Original blog post: http://nvie.com/archives/323
                                          License: Creative Commons
The main branches

• Branches
 ‣ master
 ‣ develop
The main branches

• Lifetime
 ‣ infinite
• Usage
• master -> production-ready
• develop -> latest for next release
develop                master




                                                   Tag




    Time
                                                   0.1




initial git to create develop branch, start development
Supporting branches

• Branches
 ‣ feature
 ‣ release
 ‣ hotfix
Feature branches
• May branch off from: develop
• Must merge back into: develop
• Branch naming convention: anything except
  master, develop, release/*, hotfix/*
• Typically exist in developer repos only, not
  in origin
Feature branches

• Create a feature branch
 • When starting work on a new feature,
     branch off from the develop branch
 •   $ git checkout -b myfeature develop
Feature branches

• Incorporating a finished feature on develop
 • merge into the develop branch
 •   $ git checkout develop

 •   $ git merge --no-ff myfeature

 •   $ git branch -d myfeature

 •   $ git push origin develop
Feature branches
• The --no-ff flag avoids losing information
  about the historical existence of a feature
feature
                     branches       develop   master




                                                       Tag




 Time
                                                       0.1



                        Major
                      feature for
         Feature
                     next release
        for future
         release




create feature/* branches to start new features
feature
                          branches       develop   master




                                                            Tag




      Time
                                                            0.1



                             Major
                           feature for
              Feature
                          next release
             for future
              release




when finish develop features, merge back to develop branch
develop               master




                                          Tag




Time
                                          0.1




       delete feature branches
Release branches

• May branch off from: develop
• Must merge back into: develop and
  master
• Branch naming convention: release/*
Release branches

• Creating a release branch
    • $ git checkout -b release/1.2 develop
•   Finishing a release branch
    •   $   git   checkout master
    •   $   git   merge --no-ff release/1.2
    •   $   git   tag -a 1.2
    •   $   git   checkout develop
    •   $   git   merge --no-ff release/1.2
    •   $   git   branch -d release/1.2
release branches
              develop                                   master




                                                                 Tag




Time
                                                                 0.1




                                                                 Tag
                                                                 0.2



                                            Start of
                                            release
                                           branch for
                                              1.0




create release/* branch to ready to release
release branches
                           develop                                   master




                                                                              Tag




            Time
                                                                              0.1




                                                                              Tag
                                                                              0.2



                                                         Start of
                                                         release
                                                        branch for
                                                           1.0




                                                          Only
                                                        bug xes!




                                     Bug xes from                             Tag
                                      rel. branch
                                        may be                                1.0
                                     continuously
                                     merged back
                                     into develop




when finish test or fix bugs, merge back to master and develop branches
develop               master




                                          Tag




Time
                                          0.1




                                          Tag
                                          0.2




                                          Tag
                                          1.0




       delete release/* branch
Hotfix branches

• May branch off from: master
• Must merge back into: develop and
  master
• Branch naming convention: hotfix/*
Hotfix branches

• Creating the hotfix branch
    • $ git checkout -b hotfix/1.2.1      master


•   Finishing a hotfix branch
    •   $   git   checkout master
    •   $   git   merge --no-ff hotfix/1.2.1
    •   $   git   checkout develop
    •   $   git   merge --no-ff hotfix/1.2.1
    •   $   git   branch -d hotfix/1.2.1
develop                  hot xes   master




                                                            Tag




Time
                                                            0.1



                           Severe bug
                              xed for
                           production:
                            hot x 0.2




       create hotfix/* branch to fix bugs
develop                               hot xes   master




                                                                                Tag




         Time
                                                                                0.1



                                               Severe bug
                                                  xed for
                                               production:
                                                hot x 0.2

                                 Incorporate
                                   bug x in
                                   develop


                                                                                Tag
                                                                                0.2




when finish fix bugs, merge back to master and develop branches
develop               master




                                           Tag




Time
                                           0.1




                                           Tag
                                           0.2




       delete hotfix/* branches
Refernce


• http://bit.ly/gitflow-1

Contenu connexe

En vedette

Наталья Желнова — Как обзавестись аналитиками и получить от них пользу в проекте
Наталья Желнова — Как обзавестись аналитиками и получить от них пользу в проектеНаталья Желнова — Как обзавестись аналитиками и получить от них пользу в проекте
Наталья Желнова — Как обзавестись аналитиками и получить от них пользу в проектеDaria Oreshkina
 
Аттестация и карьерный рост аналитиков
Аттестация и карьерный рост аналитиковАттестация и карьерный рост аналитиков
Аттестация и карьерный рост аналитиковSQALab
 
Н. Желнова "Оценка эффективности работы аналитика", DUMP-2014
Н. Желнова "Оценка эффективности работы аналитика", DUMP-2014Н. Желнова "Оценка эффективности работы аналитика", DUMP-2014
Н. Желнова "Оценка эффективности работы аналитика", DUMP-2014it-people
 
Инструменты управления требованиями: затычки, костыли и грабли
Инструменты управления требованиями: затычки, костыли и граблиИнструменты управления требованиями: затычки, костыли и грабли
Инструменты управления требованиями: затычки, костыли и граблиSQALab
 
Управление требованиями VS Разработка требований. Принципы и инструменты
Управление требованиями VS Разработка требований. Принципы и инструментыУправление требованиями VS Разработка требований. Принципы и инструменты
Управление требованиями VS Разработка требований. Принципы и инструментыSQALab
 
Как быть заказчиком продукта?
Как быть заказчиком продукта?Как быть заказчиком продукта?
Как быть заказчиком продукта?Denis Beskov
 
05 задачи эксперта в работе аналитика
05 задачи эксперта в работе аналитика05 задачи эксперта в работе аналитика
05 задачи эксперта в работе аналитикаNatalya Sveshnikova
 
Техники сбора пользовательских требований
Техники сбора пользовательских требованийТехники сбора пользовательских требований
Техники сбора пользовательских требованийSQALab
 
Оценка эффективности работы аналитика
Оценка эффективности работы аналитикаОценка эффективности работы аналитика
Оценка эффективности работы аналитикаSQALab
 
Идеальный аналитик и почему его не может быть
Идеальный аналитик и почему его не может бытьИдеальный аналитик и почему его не может быть
Идеальный аналитик и почему его не может бытьSQALab
 
Контрольный список для проверки требований
Контрольный список для проверки требованийКонтрольный список для проверки требований
Контрольный список для проверки требованийIvan Shamaev
 
Глава 9 методы и техники бизнес-анализа (babok 2.0 на русском скачать)
Глава 9 методы и техники бизнес-анализа (babok 2.0 на русском скачать)Глава 9 методы и техники бизнес-анализа (babok 2.0 на русском скачать)
Глава 9 методы и техники бизнес-анализа (babok 2.0 на русском скачать)Ivan Shamaev
 
Управление требованиями
Управление требованиямиУправление требованиями
Управление требованиямиIvan Shamaev
 
QA Fest 2014. Алексей Лупан. Не тест-кейсы красят тестировщика, а...
QA Fest 2014. Алексей Лупан. Не тест-кейсы красят тестировщика, а...QA Fest 2014. Алексей Лупан. Не тест-кейсы красят тестировщика, а...
QA Fest 2014. Алексей Лупан. Не тест-кейсы красят тестировщика, а...QAFest
 
Введение в моделирование бизнес процессов
Введение в моделирование бизнес процессовВведение в моделирование бизнес процессов
Введение в моделирование бизнес процессовNatalia Zhelnova
 
Полезные навыки аналитиков - как стать профессионалом
Полезные навыки аналитиков - как стать профессионаломПолезные навыки аналитиков - как стать профессионалом
Полезные навыки аналитиков - как стать профессионаломSQALab
 

En vedette (17)

Наталья Желнова — Как обзавестись аналитиками и получить от них пользу в проекте
Наталья Желнова — Как обзавестись аналитиками и получить от них пользу в проектеНаталья Желнова — Как обзавестись аналитиками и получить от них пользу в проекте
Наталья Желнова — Как обзавестись аналитиками и получить от них пользу в проекте
 
САПР_СALS
САПР_СALSСАПР_СALS
САПР_СALS
 
Аттестация и карьерный рост аналитиков
Аттестация и карьерный рост аналитиковАттестация и карьерный рост аналитиков
Аттестация и карьерный рост аналитиков
 
Н. Желнова "Оценка эффективности работы аналитика", DUMP-2014
Н. Желнова "Оценка эффективности работы аналитика", DUMP-2014Н. Желнова "Оценка эффективности работы аналитика", DUMP-2014
Н. Желнова "Оценка эффективности работы аналитика", DUMP-2014
 
Инструменты управления требованиями: затычки, костыли и грабли
Инструменты управления требованиями: затычки, костыли и граблиИнструменты управления требованиями: затычки, костыли и грабли
Инструменты управления требованиями: затычки, костыли и грабли
 
Управление требованиями VS Разработка требований. Принципы и инструменты
Управление требованиями VS Разработка требований. Принципы и инструментыУправление требованиями VS Разработка требований. Принципы и инструменты
Управление требованиями VS Разработка требований. Принципы и инструменты
 
Как быть заказчиком продукта?
Как быть заказчиком продукта?Как быть заказчиком продукта?
Как быть заказчиком продукта?
 
05 задачи эксперта в работе аналитика
05 задачи эксперта в работе аналитика05 задачи эксперта в работе аналитика
05 задачи эксперта в работе аналитика
 
Техники сбора пользовательских требований
Техники сбора пользовательских требованийТехники сбора пользовательских требований
Техники сбора пользовательских требований
 
Оценка эффективности работы аналитика
Оценка эффективности работы аналитикаОценка эффективности работы аналитика
Оценка эффективности работы аналитика
 
Идеальный аналитик и почему его не может быть
Идеальный аналитик и почему его не может бытьИдеальный аналитик и почему его не может быть
Идеальный аналитик и почему его не может быть
 
Контрольный список для проверки требований
Контрольный список для проверки требованийКонтрольный список для проверки требований
Контрольный список для проверки требований
 
Глава 9 методы и техники бизнес-анализа (babok 2.0 на русском скачать)
Глава 9 методы и техники бизнес-анализа (babok 2.0 на русском скачать)Глава 9 методы и техники бизнес-анализа (babok 2.0 на русском скачать)
Глава 9 методы и техники бизнес-анализа (babok 2.0 на русском скачать)
 
Управление требованиями
Управление требованиямиУправление требованиями
Управление требованиями
 
QA Fest 2014. Алексей Лупан. Не тест-кейсы красят тестировщика, а...
QA Fest 2014. Алексей Лупан. Не тест-кейсы красят тестировщика, а...QA Fest 2014. Алексей Лупан. Не тест-кейсы красят тестировщика, а...
QA Fest 2014. Алексей Лупан. Не тест-кейсы красят тестировщика, а...
 
Введение в моделирование бизнес процессов
Введение в моделирование бизнес процессовВведение в моделирование бизнес процессов
Введение в моделирование бизнес процессов
 
Полезные навыки аналитиков - как стать профессионалом
Полезные навыки аналитиков - как стать профессионаломПолезные навыки аналитиков - как стать профессионалом
Полезные навыки аналитиков - как стать профессионалом
 

Similaire à Gitflow Model

Git version control
Git version controlGit version control
Git version controlDavid Xie
 
Subversion to Git Migration
Subversion to Git MigrationSubversion to Git Migration
Subversion to Git MigrationTim Massey
 
Git flow Introduction
Git flow IntroductionGit flow Introduction
Git flow IntroductionDavid Paluy
 
Planning with timeline
Planning with timelinePlanning with timeline
Planning with timelineTarget Process
 
Planning with timeline
Planning with timelinePlanning with timeline
Planning with timelineOleg Seriaga
 
A successful Git branching model
A successful Git branching model A successful Git branching model
A successful Git branching model abodeltae
 
A Git Workflow Model or Branching Strategy
A Git Workflow Model or Branching StrategyA Git Workflow Model or Branching Strategy
A Git Workflow Model or Branching StrategyVivek Parihar
 
How We Use GitHub
How We Use GitHubHow We Use GitHub
How We Use GitHubNYC DevShop
 
Gitflow - Una metología para manejo de Branches
Gitflow - Una metología para manejo de BranchesGitflow - Una metología para manejo de Branches
Gitflow - Una metología para manejo de BranchesJavier Alvarez
 
Clarive 7 Branching Model
Clarive 7 Branching ModelClarive 7 Branching Model
Clarive 7 Branching ModelClarive
 
GitFlow Workshop
GitFlow WorkshopGitFlow Workshop
GitFlow WorkshopSyed Imam
 

Similaire à Gitflow Model (20)

Git version control
Git version controlGit version control
Git version control
 
Uber git workflow
Uber git workflowUber git workflow
Uber git workflow
 
Uber git workflow
Uber git workflowUber git workflow
Uber git workflow
 
Uber git workflow
Uber git workflowUber git workflow
Uber git workflow
 
Git flow workflow example
Git flow workflow exampleGit flow workflow example
Git flow workflow example
 
Git workflows
Git workflowsGit workflows
Git workflows
 
Gitflow Workflow
Gitflow WorkflowGitflow Workflow
Gitflow Workflow
 
Git
GitGit
Git
 
Subversion to Git Migration
Subversion to Git MigrationSubversion to Git Migration
Subversion to Git Migration
 
Git flow Introduction
Git flow IntroductionGit flow Introduction
Git flow Introduction
 
Planning with timeline
Planning with timelinePlanning with timeline
Planning with timeline
 
Planning with timeline
Planning with timelinePlanning with timeline
Planning with timeline
 
A successful Git branching model
A successful Git branching model A successful Git branching model
A successful Git branching model
 
A Git Workflow Model or Branching Strategy
A Git Workflow Model or Branching StrategyA Git Workflow Model or Branching Strategy
A Git Workflow Model or Branching Strategy
 
Subversion
SubversionSubversion
Subversion
 
How We Use GitHub
How We Use GitHubHow We Use GitHub
How We Use GitHub
 
Gitflow - Una metología para manejo de Branches
Gitflow - Una metología para manejo de BranchesGitflow - Una metología para manejo de Branches
Gitflow - Una metología para manejo de Branches
 
Hdfs high availability
Hdfs high availabilityHdfs high availability
Hdfs high availability
 
Clarive 7 Branching Model
Clarive 7 Branching ModelClarive 7 Branching Model
Clarive 7 Branching Model
 
GitFlow Workshop
GitFlow WorkshopGitFlow Workshop
GitFlow Workshop
 

Dernier

Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontologyjohnbeverley2021
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...apidays
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Angeliki Cooney
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxRemote DBA Services
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Victor Rentea
 

Dernier (20)

Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 

Gitflow Model

  • 1. feature release branches branches develop hot xes master Tag Time 0.1 Major Severe bug feature for xed for Feature next release production: for future hot x 0.2 release Incorporate bug x in develop Tag 0.2 Start of release branch for From this point on, 1.0 “next release” means the release after 1.0 Only bug xes! Bug xes from Tag rel. branch may be 1.0 continuously merged back into develop Author: Vincent Driessen Original blog post: http://nvie.com/archives/323 License: Creative Commons
  • 2. The main branches • Branches ‣ master ‣ develop
  • 3. The main branches • Lifetime ‣ infinite • Usage • master -> production-ready • develop -> latest for next release
  • 4. develop master Tag Time 0.1 initial git to create develop branch, start development
  • 5. Supporting branches • Branches ‣ feature ‣ release ‣ hotfix
  • 6. Feature branches • May branch off from: develop • Must merge back into: develop • Branch naming convention: anything except master, develop, release/*, hotfix/* • Typically exist in developer repos only, not in origin
  • 7. Feature branches • Create a feature branch • When starting work on a new feature, branch off from the develop branch • $ git checkout -b myfeature develop
  • 8. Feature branches • Incorporating a finished feature on develop • merge into the develop branch • $ git checkout develop • $ git merge --no-ff myfeature • $ git branch -d myfeature • $ git push origin develop
  • 9. Feature branches • The --no-ff flag avoids losing information about the historical existence of a feature
  • 10. feature branches develop master Tag Time 0.1 Major feature for Feature next release for future release create feature/* branches to start new features
  • 11. feature branches develop master Tag Time 0.1 Major feature for Feature next release for future release when finish develop features, merge back to develop branch
  • 12. develop master Tag Time 0.1 delete feature branches
  • 13. Release branches • May branch off from: develop • Must merge back into: develop and master • Branch naming convention: release/*
  • 14. Release branches • Creating a release branch • $ git checkout -b release/1.2 develop • Finishing a release branch • $ git checkout master • $ git merge --no-ff release/1.2 • $ git tag -a 1.2 • $ git checkout develop • $ git merge --no-ff release/1.2 • $ git branch -d release/1.2
  • 15. release branches develop master Tag Time 0.1 Tag 0.2 Start of release branch for 1.0 create release/* branch to ready to release
  • 16. release branches develop master Tag Time 0.1 Tag 0.2 Start of release branch for 1.0 Only bug xes! Bug xes from Tag rel. branch may be 1.0 continuously merged back into develop when finish test or fix bugs, merge back to master and develop branches
  • 17. develop master Tag Time 0.1 Tag 0.2 Tag 1.0 delete release/* branch
  • 18. Hotfix branches • May branch off from: master • Must merge back into: develop and master • Branch naming convention: hotfix/*
  • 19. Hotfix branches • Creating the hotfix branch • $ git checkout -b hotfix/1.2.1 master • Finishing a hotfix branch • $ git checkout master • $ git merge --no-ff hotfix/1.2.1 • $ git checkout develop • $ git merge --no-ff hotfix/1.2.1 • $ git branch -d hotfix/1.2.1
  • 20. develop hot xes master Tag Time 0.1 Severe bug xed for production: hot x 0.2 create hotfix/* branch to fix bugs
  • 21. develop hot xes master Tag Time 0.1 Severe bug xed for production: hot x 0.2 Incorporate bug x in develop Tag 0.2 when finish fix bugs, merge back to master and develop branches
  • 22. develop master Tag Time 0.1 Tag 0.2 delete hotfix/* branches