posts - 128,  comments - 21,  views - 26万
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

#1:(注意!)使用Git bash here执行:

 

#2:查看git每个人当日提交代码行数(修改--after="2023-11-15 00:00:00"日期为今天 ,可以查询当日所有人提交代码量),--before="2099-12-31 23:59:59" 为截止时间

 

 

git log --format='%aN' | sort -u | while read name; do echo -en "$name\t"; git log --author="$name" --after="2023-11-15 00:00:00" --before="2099-12-31 23:59:59" --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   花开浪漫拾  阅读(640)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· .NET10 - 预览版1新功能体验(一)
历史上的今天:
2019-11-15 SpringCloud中Service类注入同服务下(@Feign)api接口不走http的解决方案

喜欢请打赏

扫描二维码打赏

了解更多

点击右上角即可分享
微信分享提示