git log --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 }'
git log --author
="zhangsan" --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 }'
转载请注明原文地址:https://tech.qufami.com/read-11446.html