Created
April 3, 2011 11:16
-
-
Save larsar/900367 to your computer and use it in GitHub Desktop.
My Git development workflow
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
# Based on http://reinh.com/blog/2009/03/02/a-git-workflow-for-agile-teams.html | |
# Start working on new feature/fix | |
git checkout -b <feature/fix branch name> | |
# On a regular basis, rebase against upstream | |
git fetch origin master | |
git rebase origin/master | |
# When feature/fix is finished, rebase and squash commits into fewer | |
# (pick the first commit line, and squash the rest) | |
git rebase -i origin/master | |
# Merge feature/fix branch with local master | |
git checkout master | |
git merge <feature/fix branch name> | |
# Push local master upstream | |
git push origin master | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment