I was thinking about ways to improving my commit practices.
Is there any co-relation between no. of source code lines and no. of commits?
In a recent project that I was involved in, I was going at 30 commits per 1000 lines.
One typical file from the project has these stats
Another file has these...
Language: Python total commits that include this file: 17 total lines: 933 source lines: 730 comment lines: 80 classes: 1 methods: 10
I also think that no. of commits is more related to no. of features or no. of changes to the code and less to the no. of lines.
The general git community motto is make short commits and commit often.
So, do you really think about you commit strategy before you start the project. For that matter, is there anything like commit strategy? If so, what's yours?
© Programmers or respective owner