DEV Community

Discussion on: Trouble with Git Commits on Github? Me too.

Collapse
 
danstur profile image
danstur

Number of commits is about as useful as lines of code for measuring anything.

If I rebase and squash my commits before merging them into master have I suddenly done less work?
If I take a commit and split it into a separate commit for every file, have I suddenly done ten times more work?

There's really no reason to worry about this, no sane person would ever make decisions based on commit count.

Collapse
 
aliyalewis profile image
Aliya Lewis

Unfortunately, I'm in a position where commit count does matter, otherwise I wouldn't worry about it at all.