git代码产出、工作量统计,两行命令就够了


查看所有代码

git log --author="oak" --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 }' -

查看某个时间段的代码产出

git log --stat --since=2020-06-01 --until=2020-06-05  | perl -ne 'END { print $c } $c += $1 if /(\d+) insertions/;'

 

ps:可以以此作为绩效的重要考核指标


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM