1. Home
  2. Git
  3. Soft reset

Unstage all modified or new files from the last commit. It will not remove any files or changes.

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