Git-Flow Cheatsheet
Git-Flow Cheatsheet
Fo
r
git-flow
k
m
e
on
Gi
tH
ub
cheatsheet
Tweet
created by Daniel Kummer
About
git-flow are a set of git extensions to provide high-level
repository operations for Vincent Driessen's branching model.
more
★★★
This cheatsheet shows the basic usage and effect of git-flow
operations
★★★
Basic tips
★ Git flow provides excellent command line help and output.
Read it carefully to see what's happening...
https://danielkummer.github.io/git-flow-cheatsheet/ 1/9
17/04/2020 git-flow cheatsheet
★★★
Setup
★ You need a working git installation as prerequisite.
★ Git flow works on macOS, Linux and Windows
★★★
Macports
$ port install git-flow-
avh
Linux
$ apt-get install git-
flow
Windows (Cygwin)
$ wget -q -O - --no-
check-certificate
https://raw.github.com/pe
tervanderdoes/gitflow-
avh/develop/contrib/gitfl
ow-installer.sh install
stable | bash
https://danielkummer.github.io/git-flow-cheatsheet/ 2/9
17/04/2020 git-flow cheatsheet
Getting started
Git flow needs to be initialized in order to customize your project
setup.
★★★
Initialize
Start using git-flow by
initializing it inside an existing
git repository:
Features
★ Develop new features for upcoming releases
★ Typically exist in developers repos only
★★★
Finish up a feature
Finish the development of a
feature. This action performs
the following
Publish a feature
Are you developing a feature in
collaboration?
Publish a feature to the remote
server so it can be used by
other users.
Getting a published
feature
Get a feature published by
another user.
https://danielkummer.github.io/git-flow-cheatsheet/ 4/9
17/04/2020 git-flow cheatsheet
Make a release
★ Support preparation of a new production release
★ Allow for minor bug fixes and preparing meta-data for a
release
★★★
Start a release
To start a release, use the git
flow release command. It
creates a release branch
created from the 'develop'
branch.
★★★
It's wise to publish the release
branch after creating it to
allow release commits by other
developers. Do it similar to
feature publishing with the
command:
Finish up a release
Finishing a release is one of
the big steps in git branching.
It performs several actions:
Hotfixes
★ Hotfixes arise from the necessity to act immediately upon an
undesired state of a live production version
★ May be branched off from the corresponding tag on the master
branch that marks the production version.
★★★
https://danielkummer.github.io/git-flow-cheatsheet/ 6/9
17/04/2020 git-flow cheatsheet
Finish a hotfix
By finishing a hotfix it gets
merged back into develop and
master. Additionally the
master merge is tagged with
the hotfix version.
Commands
https://danielkummer.github.io/git-flow-cheatsheet/ 7/9
17/04/2020 git-flow cheatsheet
Backlog
★★★
★ Not all available commands are covered here, only the most
important ones
★ You can still use git and all its commands normally as you
know them, git flow is only a tooling collection
★ The 'support' feature is still beta, using it is not advised
★ If you'd like to supply translations I'd be happy to integrate
them
★★★
Comments
https://danielkummer.github.io/git-flow-cheatsheet/ 8/9
17/04/2020 git-flow cheatsheet
Sponsored
Play this Game for 1 Minute and see why everyone is addicted
StrategyCombat
They Took The Same Picture For 40 Years. Don't Cry When You See The Last!
TopGentlemen.com
You Will Never Throw Away a Banana Peel Again After You See This
Health & Human Research
If You Drink Lemon Water Every Day Then This Will Happen to Your Body
Fitness Engage
LOG IN WITH
OR SIGN UP WITH DISQUS ?
Name
https://danielkummer.github.io/git-flow-cheatsheet/ 9/9