Git统计指定时间段内代码增删汇总行数

git log --format=’%aN’ | sort -u | while read name; do echo -en “KaTeX parse error: Expected 'EOF', got '\t' at position 5: name\̲t̲"; git log --au…name” --pretty=tformat: --since ==2019-1-10 --until=2019-1-25 --numstat | awk ‘{ add += $1; subs += $2; loc += $1 - $2 } END { printf “added lines: %s, removed lines: %s, total lines: %s\n”, add, subs, loc }’ -; done

发布了137 篇原创文章 · 获赞 49 · 访问量 37万+

猜你喜欢

转载自blog.csdn.net/MAIMIHO/article/details/86651207
今日推荐