git log --format='%aN' | sort -u | while read name; do echo -en "$name\t"; git log --author="$name" --since=2022-11-08 --until=2022-11-18 --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
标签:loc,git,name,--,代码,lines,提交,subs From: https://www.cnblogs.com/juniorMa/p/16903240.html