3 ms·
In both examples given in the "Undoing a bad commit" section (fixing a commit message and fixing an error in a file) it's easier to make the change and then run
by boustrophedon 4y ago
In both examples given in the "Undoing a bad commit" section (fixing a commit message and fixing an error in a file) it's easier to make the change and then run `git commit -a --amend` which takes the current changes you have and adds them to the last commit, allowing you to change the commit message as well.
There are other cases where git reset is useful, but generally not for the reasons given.