- Peter Peerdeman
Either you've read about cleaning up git commits a million times, or not at all. I heard about it but never really gave it a shot before but after "the git-father" @chielkunkels showed me how easy it is to rewrite your history, everyone should at least give
git commit --amend and
git rebase -i a try.
The specifics of these commands have been explained pretty well in the following blogposts, so I'll happily refer to them if you want to join the club of clean committers!
- "Git Interactive Rebase, Squash, Amend and Other Ways of Rewriting History" by Thoughtbot - a very nice overview of the concepts I'm talking about
- "squashing commits with rebase" by gitready - a very concrete example of why you'd want to squash a commit.