git 查看统计增加删除总行数

Posted iamsoscared

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了git 查看统计增加删除总行数相关的知识,希望对你有一定的参考价值。

git log  --pretty=tformat: --numstat | awk { add += $1; del += $2; tot += $1 - $2 } END { printf "added lines: %s, removed lines: %s, total lines: %s
", add, del, tot }

 

以上是关于git 查看统计增加删除总行数的主要内容,如果未能解决你的问题,请参考以下文章