Last active
January 4, 2016 07:18
-
-
Save Cosmicist/8587303 to your computer and use it in GitHub Desktop.
Moving commits to a new branch - from: http://stackoverflow.com/questions/1628563/how-can-i-move-recent-commits-to-a-new-branch-with-git/1628584#1628584
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 | |
git checkout newbranch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment