代码改变世界

git查看代码量的方法

2020-10-15 17:08  宋海宾  阅读(2950)  评论(0编辑  收藏  举报
其中author是代码提交者:
 
git log --since="2020-03-30" --before="2020-10-15" --author="xxx" --pretty=tformat: --numstat | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "added lines: %s, removed lines: %s, total lines: %s\n", add, subs, loc }'