git log --pretty='%aN' | sort -u | while read name; do echo -en "$name "; git log --since="2019-09-01" --before="2019-09-27" --author="$name" --pretty=tformat: --numstat | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "added lines: %s, removed lines: %s, total lines: %s ", add, subs, loc }' -; done
git log --pretty='%aN' | sort -u | while read name; do echo -en "$name "; git log --since="2020-03-23" --before="2020-03-27" --author="$name" --pretty=tformat: --numstat | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "新增 %s 行, 移除: %s 行, 总计: %s 行 ", add, subs, loc }' -; done
git log --pretty='%aN' | sort -u | while read name; do echo -en "$name "; git log --since="2020-07-01" --before="2020-07-31" --author="$name" --pretty=tformat: --numstat -- . ":(exclude)static" ":(exclude)dist" ":(exclude)src/router" ":(exclude)src/components" | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "新增 %s 行, 移除: %s 行, 总计: %s 行 ", add, subs, loc }' -; done