首页 > 其他分享 >使用Git统计指定时间范围内新增、删除代码行数

使用Git统计指定时间范围内新增、删除代码行数

时间:2023-03-23 21:23:16浏览次数:36  
标签:03 Git subs 删除 loc -- 代码 add

统计命令

git log --author="xxx" --since='2023-03-20' --until='2023-03-21' --pretty=tformat: --numstat | gawk '{ add += $1 ; subs += $2 ; loc += $1 - $2 } END { printf "增加行数:%s 删除行数:%s 总行数: %s\n",add,subs,loc }'

标签:03,Git,subs,删除,loc,--,代码,add
From: https://www.cnblogs.com/hai-feng/p/17249488.html

相关文章