Re:Squash your commits
by Stratoscope on Saturday April 02, 2016 @01:26AM
(#11410365)
Agreed, I certainly don't advocate squashing more commits than necessary! The granular, the better. As I mentioned, I'll often tease apart separate commits out of something that I originally stuffed into a single commit: whitespace changes, add some comments, fix a bug, all separate even if they started out as one commit.
I just don't find it useful to see every commit when someone uses Git like I do, committing all sorts of intermediate broken work while experimenting. Especially not commits that are going to be broken regardless.
(though the counterpoint is that maybe there are parts of the granular history that are just busted for other reasons)