Undo last commit and keep changes staged

Move HEAD back one commit. Your changes stay staged

git reset --soft HEAD~1

tool
git45 commands
tags
gitresetundo

More git commands

all 45 git commands