Skip to content

Instantly share code, notes, and snippets.

@IngmarBoddington
Created February 1, 2013 16:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IngmarBoddington/4692320 to your computer and use it in GitHub Desktop.
Save IngmarBoddington/4692320 to your computer and use it in GitHub Desktop.
git flow commands (see: https://github.com/nvie/gitflow for resources)
git flow init
- Sets up 'proper' branch structure for repo
git flow feature
- List feature branches
git flow feature start <name>
- Begin a new feature branch from develop and switch to it
git flow feature finish <name>
- Complete feature, merge into develop, delete feature branch
git flow feature publish <name>
git flow feature pull <remote> <name>
- Push / pull feature to remote (for collaboration)
git flow release
- List release branches
git flow release start <name> [<base>]
- Start release branch from develop and switch to it, optional base is commit on develop
git flow release finish <name>
- Complete a release, merge into develop, merge into master, delete branch,
git flow hotfix
- List hotfix branches
git flow hotfix start <release> [<base>]
- Start hotfix branch from master, switch to it
git flow hotfix finish <release>
- Complete hotfix, merge into master and remove branch
git flow support
- List support branches
git flow support start <release> <base>
- Create new support branch from master, base must be a commit on master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment