GitHub统计某人在某段时间内提交的代码行数
1 | git log --author="mrxy001" --author="MRXY001" --since="2018-01-01" --until="2020-01-01" --pretty=tformat: --numstat -- . ":(exclude)debug" ":(exclude)release" ":(exclude)android" ":(exclude)friso" ":(exclude)jieba" ":(exclude)tools" ":(exclude)update_tools" ":(exclude)resources" | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "added lines: %s, removed lines: %s, total lines: %s\n", add, subs, loc }' |