git tips 积累

统计项目中所有人的代码提交次数并排序: git shortlog -s -n

统计某人的代码量 git log --author="_Your_Name_Here_" --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 }' -

posted on 2014-09-17 13:17  Dean Song  阅读(111)  评论(0)    收藏  举报