Git代码统计 发表于 2017-06-18 | Git查询某人代码量1git log --author="quankj" --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 }' - 12345678910111213141516171819202122232425frontend:255980backend:191065sum:447045sg-gkzb-fe:255980sg-business-gkzb-bid:66970basedata:64273orgrights:22190supplier:12413material:22319supplybid:2900xiDaiDai:quankj:liudfb:zhangkunh:gtg:zhoudong3:liuxiac:ck:1wangchengk:mixue:zhangmyh:ninghu:windknow: