git统计某个时间段写的代码行数

1. 任务需要

领导想每个迭代统计一下,当前迭代开发的代码数量是多少

2. 解决方法

git log --stat --since=2019-09-12 --until=2019-09-27  | perl -ne 'END { print $c } $c += $1 if /(d+) insertions/;'
原文地址:https://www.cnblogs.com/supery007/p/11597587.html