Hacker News new | past | comments | ask | show | jobs | submit login

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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: