其他分享
首页 > 其他分享> > git代码量统计

git代码量统计

作者:互联网

所有人

git log --format='%aN' | sort -u | while read name; do echo -en "$name\t"; git log --author="$name" --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 }' -; done

自己

git log --author="你的名字" --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 }' -

 

标签:loc,git,subs,--,代码,lines,add,统计
来源: https://www.cnblogs.com/yeg0zj/p/15719368.html