Cheatography
https://cheatography.com
Getting started
Initialize a new repository inside an existing git repository with git flow init
. |
Types of branches
Feature branch |
For developing new features |
Release branch |
Staging area for new releases |
Hotfix branch |
Production fixes (based on master
) |
Bugfix branch |
Development fixes (based on develop
) |
Support branch |
Production fixes for a specific release |
Features
Show feature branches |
|
Start a new feature |
git flow feature start FEATURENAME
|
Publish feature branch to remote |
git flow feature publish FEATURENAME
|
Finish up a feature |
git flow feature finish FEATURENAME
|
Finishing a feature branch will merge it into develop
.
Releases
Show release branches |
|
Start a new release |
git flow hotfix start VERSION
|
Publish release branch to remote |
git flow hotfix publish VERSION
|
Finish up a release |
git flow hotfix finish VERSION
|
Finishing a release branch will merge it into master
and develop
while also tagging it.
|
|
Hotfixes
Show hotfix branches |
|
Start a new hotfix |
git flow hotfix start FIXNAME
|
Publish hotfix branch to remote |
git flow hotfix publish FIXNAME
|
Finish up a hotfix |
git flow hotfix finish FIXNAME
|
Finishing a hotfix branch will merge it into master
.
Bugfixes
Show bugfix branches |
|
Start a new bugfix |
git flow bugfix start FIXNAME
|
Publish bugfix branch to remote |
git flow bugfix publish FIXNAME
|
Finish up a bugfix |
git flow bugfix finish FIXNAME
|
Finishing a bugfix branch will merge it into develop
.
Support
Show support branches |
|
Start a new support branch |
git flow support start VERSION
|
|
Created By
Metadata
Favourited By
Comments
olivierlabbe, 13:14 5 Dec 19
Release section is in error, all statements are for hotfixes.
onhelial, 13:15 12 Jun 20
I think you should integrate the fact to the base can be provided. For instance:
git flow feature start login feature/security
onhelial, 13:29 12 Jun 20
How to rate it?
Add a Comment
Related Cheat Sheets