统计代码量


git log --since="2017-03-01" --before="2019-12-10" --author="$(git config --get matengfei)" --pretty=tformat: --numstat | gawk '{ add += $1 ; subs += $2 ; loc += $1 - $2 } END { printf "added lines: %s removed lines : %s total lines: %s ",add,subs,loc }'

原文地址:https://www.cnblogs.com/matengfei123/p/9939810.html