Return to Snippet

Revision: 56427
at March 27, 2012 23:33 by Glycerine


Initial Code
git branch newbranch
git reset --hard 2d42c47...
git checkout newbranch

Initial URL
http://stackoverflow.com/questions/1628563/git-move-recent-commit-to-a-new-branch

Initial Description
Reset a branch. Notably used for moving a commit from one branch to another, or fix a commit on 'no branch'

Initial Title
Git move commit to from 'no branch'

Initial Tags
git

Initial Language
Python