git log --format='%aN' | sort -u | while read name; do echo -en "$name"; git log --author="$name" --pretty=tformat: --numstat --since=2020-12-01 --until=2020-12-31| awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf " added lines: %s, removed lines: %s, total lines: %s\n", add, subs, loc }' -; done
The key control time parameters are:
--since Only show submissions after the specified time. 2020-12-01 in the above command
--until Only show commits before the specified time. 2020-12-31 in the above command
That is, the meaning of the above order is to query the submission statistics of all people from December 01, 2020 to December 31, 2020
The effect is as follows