Undoes commits and discards changes.
Group: Undo
git reset --hard HEAD~1
← All of Git Command Reference