Re:Fortunately, I don't squash my commits
by mixmastamyk on Monday October 05, 2020 @04:25PM
(#24691628)
Agreed, I regularly add comments later as well. Understanding often comes after the code works.
I could obsessively fiddle with every commit like an artesenal snowflake, or I could click the squash checkbox on the request.
A commit is a change. A change has a ticket. A ticket is a small piece of work that does not result in 3k changed lines.
This ensures that the change rationale is fully documented and easily identifiable.
Nobody needs those "fixed typo" commits. Nor the "implemented function A" commits. What IS the change that you're doing? What functionality? That's the most comfortable commit granularity to debug imho.