Skip to content

Git代码行数统计

Ben Zhu edited this page Oct 10, 2018 · 1 revision
git log --author="han8gui" --after="2018-09-01" --pretty=tformat: --numstat | gawk '{ add += $1 ; subs += $2 ; loc += $1 - $2 } END { printf "增加行数:%s 删除行数:%s 变化总行数:%s\n",add,subs,loc }'