Skip to content

Instantly share code, notes, and snippets.

@joasgarcia
Created December 29, 2016 13:56
Show Gist options
  • Save joasgarcia/73c254b42f7c4d08ec8b106c789e1782 to your computer and use it in GitHub Desktop.
Save joasgarcia/73c254b42f7c4d08ec8b106c789e1782 to your computer and use it in GitHub Desktop.
Mover commits para uma nova branch
git branch newbranch
git reset --hard HEAD~3 # Go back 3 commits. You *will* lose uncommitted work.*1
git checkout newbranch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment