/ Published in: Python

Reset a branch. Notably used for moving a commit from one branch to another, or fix a commit on 'no branch'
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
git branch newbranch git reset --hard 2d42c47... git checkout newbranch
URL: http://stackoverflow.com/questions/1628563/git-move-recent-commit-to-a-new-branch
Comments
