3 ms·
I agree. We've gotten used to pick what should go into the commit after we've done the work. There's a very serious and glaring error in doing that if you don'
by ranting-moth 3y ago
I agree. We've gotten used to pick what should go into the commit after we've done the work.
There's a very serious and glaring error in doing that if you don't commit everything. When someone checks out your commit in a clean repo, his codebase is in a state that has never existed before, not even on your computer.
Some people (I think we've all done it at least once) split their work into multiple commits after a few days of hacking. Like "Adding data services for X", "UI features for X". This is a bad example, but you get the point.
Normally this doesn't cause a problem since all commits get pushed at the same time. But it can easily break things like git-bisect (which is just an amazing tool for finding astonishing bugs).