Created
December 21, 2010 17:32
-
-
Save nickfloyd/750259 to your computer and use it in GitHub Desktop.
To create and then merge changes into a branch
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
ex. | |
git checkout origin master | |
git pull origin master | |
--create branch and track master | |
git checkout -b f1-1234 origin/master | |
--make changes | |
--resolve conflicts, DO NOT PUSH branch, the merge is just to resolve conflicts | |
git commit -a -m"changed config" | |
git merge master | |
--check that the changes for the pull request match the merge | |
--ex. from the pull request diff page Showing 7 changed files with 86 additions and 37 deletions. | |
git checkout master | |
git merge f1-1234 | |
--resolve conflicts | |
git push origin master | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment