命令行简单统计 git 修改

echo "统计结果" && git --no-pager log  --since=1.days --pretty=tformat: --numstat | gawk '{ add += $1 ; subs += $2 ; loc += $1 - $2 } END { printf "增加行数:%s 删除行数:%s 变化总行数:%s\n",add,subs,loc }' && echo "详情如下:" && git --no-pager log --word-diff  --since=1.days -p --stat

发布了116 篇原创文章 · 获赞 15 · 访问量 70万+

猜你喜欢

转载自blog.csdn.net/qhexin/article/details/86315874
今日推荐