Raise your hand if you’ve ever
git commit’d something you shouldn’t have. (It’s okay, this is a judgement-free space.)
And raise your hand if you’ve ever used
git commit --amend --no-edit1 to try and hide your terrible, terrible shame. (We’re not even gonna talk about
git push -f origin master. Don’t do it, kids.)
And raise your hand one last time if you’ve ever
git commit --amend --no-edit’d and then paused and looked at your computer and were suddenly struck by the realization that you’d ruined everything.
That last one might be just me, but I’m going to pretend it happens to other people to make myself feel better. (Like all of those times I thought I was fixing a slightly incorrect commit, only to realize I had instead wiped out all of my latest work. Whoooops.)