Created
December 29, 2016 13:56
-
-
Save joasgarcia/73c254b42f7c4d08ec8b106c789e1782 to your computer and use it in GitHub Desktop.
Mover commits para uma nova 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 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