所有人提交次数
git log | grep "^Author: " | awk '{print $2}' | sort | uniq -c | sort -k1,1nr
时间段某人的提交次数
git log --author="xxx" --since="2022-02-08" --no-merges | grep -e 'commit [a-zA-Z0-9]*' | wc -l
代码行数
git log --author="xxx" --since="2022-02-08" --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 }' -