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!
- Make your change
- Add your files with git add
- Run:
git commit --amend --no-edit
person: this usually happens to me when I forget to run tests/linters before committing!
You can also add a new commit and use git rebase -i to squash them but this is about a million times faster.