Undo last commit keep changes git
Move HEAD back one commit; staged changes return to working tree
git reset HEAD~1
more git
all 45 commands →
Move HEAD back one commit; staged changes return to working tree
git reset HEAD~1