git

dev

making your git commit history pretty

There's hundreds of reasons why the commit history on your feature branch is a mess: testing things that don't work, reverts, you were pairing with someone and didn't want to waste their time while you tried to think of a good commit message. Regardless, here's how to clean up your git commits by rewriting history.