代码行数统计
git log --author="作者名称" --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 }' ;
git log --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 }'