Undo Git Commit But Keep Changes and Staging
Undo do the last commit to the current branch whilst keeping your changes.
Handy if you've just run git commit and git push to a protected branch.
git reset --soft HEAD~1Undo do the last commit to the current branch whilst keeping your changes.
Handy if you've just run git commit and git push to a protected branch.
git reset --soft HEAD~1