1. Home
  2. ›
  3. Git
  4. ›
  5. Undo last commit

This command will undo the latest commit.

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