使用 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 }' -
本文转自whk66668888 51CTO博客,原文链接:http://blog.51cto.com/12597095/1956736