使用 git bash , 进入项目根目录
git log --author="your_id" --pretty=tformat: --numstat | gawk ‘{ add += $1; subs += $2; loc += $1 + $2 } END { printf "added lines: %s removed lines: %s total lines: %s\n", add, subs, loc }‘ -
原文:http://12597095.blog.51cto.com/12587095/1956736