git统计代码行数

git log --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 }'

posted @ 2022-10-22 19:34  铁柱97  阅读(79)  评论(0)    收藏  举报