Last active
August 29, 2015 14:06
-
-
Save shearluck/ef7a49fc8031aa64a6e5 to your computer and use it in GitHub Desktop.
Successful Git branching model
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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