1. Home
  2. ›
  3. Git
  4. ›
  5. 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