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

统计git提交代码量

时间:2019-12-20 21:07:41      阅读:120      评论:0      收藏:0      [点我收藏+]

标签:tty   提交   mst   提交代码   author   $2   pre   --   ret   

# a新增行数,d删除行数

git log  --author="`git config --get user.name`" --pretty="%H" --after="2019-01-01" --numstat | awk ‘NF==3 {a+=$1; d+=$2} END {printf("+%d, -%d\n", a, d)}‘

 

统计git提交代码量

标签:tty   提交   mst   提交代码   author   $2   pre   --   ret   

原文地址:https://www.cnblogs.com/276815076/p/12074709.html

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