Skip to content

Instantly share code, notes, and snippets.

@douglasmiranda
Created March 3, 2012 01:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save douglasmiranda/1963350 to your computer and use it in GitHub Desktop.
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
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