4 ms·
> it doesn’t matter if I split that into 50 10-line commits if I need to merge in the monolith at once That is a misunderstanding of how to use this feature.
by tux1968 3y ago
> it doesn’t matter if I split that into 50 10-line commits if I need to merge in the monolith at once
That is a misunderstanding of how to use this feature. It is not meant to break changes
down into useless divisions. It is meant to allow the grouping of changes into logical
units. Logical units that help human comprehension.
This is very important when communicating with people who have never seen your code
before. It allows you to include a narrative description (commit message) with each
logical group of changes that is directly connected to the source code implementation
of just that descriptive piece. It also allows you to connect a chain of those logical units into a progression toward a greater, cohesive goal.
You may dismiss all this as irrelevant to your particular environment, and that is fine.
But Git provides tools that are directed toward it, and they're quite powerful and useful
for those who understand and use them correctly.