3 ms·
If the minor commits are related to the feature branch, by all means squash it into the feature commits if you feel that makes your feature branch easier to rev
by kvdveer 3y ago
If the minor commits are related to the feature branch, by all means squash it into the feature commits if you feel that makes your feature branch easier to review.
However,should you, while developing your feature, find some minor thing that needs improving (e.g. adding comments, spelling fixes or tests to some existing API you encountered while developing your feature), it can be better to keep it separate, so there's fewer red herring in both the history and the review.