码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2020-03-12 18:44:40      阅读:82      评论:0      收藏:0      [点我收藏+]

标签:print   class   int   move   mat   awk   lines   end   moved   

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

 

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

标签:print   class   int   move   mat   awk   lines   end   moved   

原文地址:https://www.cnblogs.com/iAmSoScArEd/p/12470860.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!