1. Home
  2. Git
  3. Undo last commit

This command will undo the latest commit.

#git
git reset --soft HEAD~1
copy
Full Git cheatsheet