Here's a preview from my zine, Oh Shit, Git! If you want to see more comics like this, sign up for my saturday comics newsletter or browse more comics!
get the zine!
read the transcript!
No problem! Just run:
git commit --amend
Then edit the commit message & save!
git commit --amend will replace the old commit with a new commit with a new SHA, so you can always go back to the old version if you really need to.
Person: if you run git commit but change tour mind, you can always abort by deleting the commit message & saving + quitting. Or quit without saving!