Discard all uncommitted changes
DestructiveResets the index and working tree to the last commit, permanently losing every staged and unstaged change to tracked files.
Destructive: this command can permanently delete data. Check every value before running it.
git reset --hardReport an issue (opens in a new tab) wrong command, wrong danger level, typo… (on GitHub)
Adapted from tldr-pages (common/git-reset.md), licensed under CC BY 4.0.