统计某人某个时间段内代码提交行数
1 | git log --format='%aN' | sort -u | while read name; do echo -en "$name\t"; git log --author="$name" --since=2020-08-01 --until=2020-08-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 }' -; done |