git命令 统计某成员/全部人员的代码提交量

统计某人

git log --since =2022-01-01 --until==2022-12-31 --author="[email protected]" --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 }'

统计全部

git log --since =2022-01-01 --until==2022-12-31 --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 }'

你可能感兴趣的:(git,github)