Bash
Public
Undo Last Commit Keep Changes
Undo the last commit but keep the changed files in your working directory.
#git
#undo
#commit
#beginner
Bash
git reset --soft HEAD~1
Notes
This is useful when the commit message was wrong or you committed too early.