Git 2 · Undoing changes
Undo the last commit, keep the changes
Move the branch back one commit and leave the changes staged.
git reset --soft HEAD~1
Git 2 · Undoing changes
Move the branch back one commit and leave the changes staged.
git reset --soft HEAD~1
Was this page helpful?