从git日志中统计各个人员提交代码行数
作者:互联网
git log --format='%aN' | sort -u | while read name; do echo -en "$name\t"; git log --author="$name" --since=2022-01-01 --until=2022-05-01 --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,name,--,lines,01,提交,日志,subs 来源: https://www.cnblogs.com/AngryMango/p/16392518.html