统计补丁个数
git shortlog --author="[email protected]" --summary --numbered --email | awk '{print $1}' | awk '{sum+=$1}END{print sum}'
统计代码行数
git log --author="[email protected]" --pretty=tformat: --numstat | gawk '{ add += $1 ; subs += $2 ; loc += $1 + $2 } END { printf "%s\n",loc }'
标签:loc,git,cn,--,补丁,个数 From: https://www.cnblogs.com/lh03061238/p/17177640.html