git log --author="username" --pretty=tformat: --numstat | awk '{ add += 2; loc +=
2 } END { printf "added lines: %s, removed lines: %s, total lines: %s\n", add, subs, loc }' -
如果要統(tǒng)計(jì)所有人就把--author參數(shù)去掉
git log --author="username" --pretty=tformat: --numstat | awk '{ add += 2; loc +=
2 } END { printf "added lines: %s, removed lines: %s, total lines: %s\n", add, subs, loc }' -
如果要統(tǒng)計(jì)所有人就把--author參數(shù)去掉