Skip to content

Instantly share code, notes, and snippets.

@potomak
Created October 21, 2010 13:51
Show Gist options
  • Save potomak/638511 to your computer and use it in GitHub Desktop.
Save potomak/638511 to your computer and use it in GitHub Desktop.
Merge foo branch into master branch (http://lwn.net/Articles/210045/)
# create foo branch
git checkout -b foo
# do some stuff on foo branch
# add changes and commit
git add .
git commit -m "add foo feature"
# merge foo branch into master branch
git checkout master
git pull . foo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment