Glossary: Command Line and Git
git reset --hard
Also written: reset --hard
Moves the current branch back to a chosen commit and makes every file match it, deleting uncommitted changes without asking. It is the dangerous way to undo work, because discarded changes can't be recovered.