Keep your branch clean with fixup and autosquash

A nice roll-up of how to declutter your Git commit history when you notice a bug or typo right after committing it.