You accidentally added salt instead of sugar. Reset lets you rewind — but how far back you go determines the damage.
You just committed a recipe change. But wait —
you accidentally wrote "Add 3 spoons of salt"
when you meant "Add 3 spoons of sugar".
The commit is done. It's in history.
How do you undo this?
History rewriting is powerful but dangerous in shared projects.
--soft is gentle.
--mixed is cautious.
--hard is a sledgehammer.