Skip to content

Instantly share code, notes, and snippets.

@thebapi
Created February 6, 2014 17:32
Show Gist options
  • Save thebapi/8848832 to your computer and use it in GitHub Desktop.
Save thebapi/8848832 to your computer and use it in GitHub Desktop.
git merge to the master
This workflow works best for me:
git checkout -b develop
...make some changes...
...notice master has been updated...
...commit changes to develop...
git checkout master
git pull
...bring those changes back into develop...
git checkout develop
git rebase master
...make some more changes...
...commit them to develop...
...merge them into master...
git checkout master
git pull
git merge develop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment