Created
March 3, 2012 01:22
-
-
Save douglasmiranda/1963350 to your computer and use it in GitHub Desktop.
Example: Create another branch to fix a bug in master, while another branch was not merged/finalized, and merge it with master and delete the temporary 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
git checkout -b issue2 | |
# after fix | |
git add YOUR_FILES_HERE | |
git commit -m "fixing #issue2" | |
git checkout master | |
git merge issue2 | |
git branch -d issue2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment