git flow cheat sheet code example
Example 1: git flow init
#basic
git flow init
#with default to not be promted
git flow init -d
#with force to re-run init and edit data
git flow init -f
Example 2: git flow finish feature
git flow feature finish MYFEATURE
Example 3: git flow feature
#Open a feature branch named: feature/feature_name
git flow feature start feature_name
#Close a feature branch
git flow feature finish feature_name
#Remember to push all branches
git push --all
Example 4: git flow
$ git flow init
Initialized empty Git repository in ~/project/.git/
No branches exist yet. Base branches must be created now.
Branch name for production releases: [master]
Branch name for "next release" development: [develop]
How to name your supporting branch prefixes?
Feature branches? [feature/]
Release branches? [release/]
Hotfix branches? [hotfix/]
Support branches? [support/]
Version tag prefix? []
$ git branch
* develop
master
Example 5: git fklow init
git flow release finish '0.1.0'