What are the differences between 'revert', 'amend,' 'rollback', and 'undo' a commit?
问题 Although I use Git pretty often, I'm still a beginner. Sometimes, I make a mistake but spot it only after I have committed it. At that point, I usually have to spend a long time on the Internet looking for the command I should use to get rid of it (before pushing). Every time that happens, I find myself wondering what's the difference between the four terms that I usually come across: revert, amend, rollback, undo. I've that it's finally time to learn those differences once and for all. What