Count the number of new lines of code (github)

It is very easy to do when doing statistical weekly reports https://blog.csdn.net/qq_41985368/article/details/106443195
and then later I found out and summarized some useful content.

echo && git --no-pager log --author="git账号" --since="统计代码开始时间" -p --stat | grep '^+[^+].*'> d:/diff.txt

The overall meaning of his translation is: to count the account number xxx plus sign "+" part of github (here the plus sign is the newly added code on github), and save all the codes from the time when the code is required to be counted to the present day to d:/diff. txt this file (this file will be created automatically when it is not available, and the content will be replaced if there is this file)

Guess you like

Origin blog.csdn.net/qq_44469200/article/details/106443644