统计每人代码提交行数
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 }'
added:增加行,removed:删除行,total:合计
2.统计每人提交次数
git log --author="用户名" --pretty='%aN' | sort | uniq -c | sort -k1 -n -r
3.根据时间范围
git log --author="用户名" --since='2022-06-10' --until='2022-12-27' --pretty='%aN' | sort | uniq -c | sort -k1 -n -r
--since:开始时间,--until:截止时间