Undo last commit (keep changes)

Move HEAD back one commit, keeping staged changes

git reset --soft HEAD~1

tool
git45 commands
tags
gitresetundo

More git commands

all 45 git commands