Skip to content

Instantly share code, notes, and snippets.

@shearluck
Last active August 29, 2015 14:06
Show Gist options
  • Save shearluck/ef7a49fc8031aa64a6e5 to your computer and use it in GitHub Desktop.
Save shearluck/ef7a49fc8031aa64a6e5 to your computer and use it in GitHub Desktop.
Successful Git branching model
// Development branch
git branch develop
// Development branch supporting branches
git branch feature-* // may branch off from develop, must merge back to develop
git branch release-* // may branch off from develop, must merge back to develop or master
git branch hotfix-* // branch off from master, must merge back to master and develop
// Merging branch that will retain branching history and metadata
git merge --no-ff branchname
// Tagging release after merging a branch to master, ie: 1.2.1
git tag -a <major>.<minor>.<patch>
// Reference: http://nvie.com/posts/a-successful-git-branching-model/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment