Git根据日期统计代码量

xiaoxiao2021-02-28  25

Git根据日期统计代码量

根据日期统计每个人代码量具体命令: git log --format='%aN' | sort -u | while read name; do echo -en "$name\t"; git log --since ==2017-04-21 --until==2017-05-21  --author="$name" --pretty=tformat: --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 具体参考: http://blog.csdn.net/liusuihui/article/details/52885417 https://segmentfault.com/a/1190000008542123 http://www.jianshu.com/p/8fd14064c201
转载请注明原文地址: https://www.6miu.com/read-850153.html

最新回复(0)