Gitflow Workflow
Gitflow Workflow
assigns very specific roles to different branches and defines how and
releases. Of course, you also get to leverage all the benefits of the
Getting Started
Gitflow is really just an abstract idea of a Git workflow. This means it
you will need to download and install git-flow. After installing git-
flow you can use it in your project by executing git flow init. Git-
How it works
record the history of the project. The master branch stores the official
should now clone the central repository and create a tracking branch
for develop.
$ git branch
* develop
master
Feature Branches
Each new feature should reside in its own branch, which can
Note that feature branches combined with the develop branch is,
for all intents and purposes, the Feature Branch Workflow. But, the
Release Branches
a release branch off of develop. Creating this branch starts the next
the release branch gets merged into master and tagged with a
one team to polish the current release while another team continues
preparing for version 4.0,” and to actually see it in the structure of the
repository).
the develop branch. A new release branch can be created using the
following methods.
into master and develop, then the release branch will be deleted.
may have been added to the release branch and they need to be
accessible to new features. If your organization stresses code review,
Hotfix Branches
of develop. This is the only branch that should fork directly off
waiting for the next release cycle. You can think of maintenance
Example
A complete example demonstrating a Feature Branch Flow is as
follows:
Summary
Here we discussed the Gitflow Workflow. Gitflow is one of many
from master
comparison page.