Skip to content

Instantly share code, notes, and snippets.

@larsar
Created April 3, 2011 11:16
Show Gist options
  • Save larsar/900367 to your computer and use it in GitHub Desktop.
Save larsar/900367 to your computer and use it in GitHub Desktop.
My Git development workflow
# 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