git统计代码提交

git log --format='%aN' | sort -u | while read name; do echo -en "$name\t"; 
git log --author="$name" --since=2022-11-08 --until=2022-11-18 --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

 

posted on 2022-11-18 14:54  MaXianZhe  阅读(81)  评论(0编辑  收藏  举报

导航