Git代码统计

Git查询某人代码量

1
git 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 }' -
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
frontend:255980
backend:191065
sum:447045

sg-gkzb-fe:255980
sg-business-gkzb-bid:66970
basedata:64273
orgrights:22190
supplier:12413
material:22319
supplybid:2900

xiDaiDai:
quankj:
liudfb:
zhangkunh:
gtg:
zhoudong3:
liuxiac:
ck:1
wangchengk:
mixue:
zhangmyh:
ninghu:
windknow: