1、统计某人的代码提交量,包括增加,删除

git log --author="$(git config --get user.name)" --since=2014-07-01 --until=2016-08-01 --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 }'

2、仓库提交者排名前5(如果看全部,去掉head管道即可)

git log --pretty='%aN' | sort | uniq -c | sort -k1 -n -r | head -n 5

 

相关文章:

  • 2022-02-10
  • 2022-12-23
  • 2021-12-06
  • 2021-11-28
  • 2021-12-05
  • 2022-12-23
  • 2021-05-31
  • 2022-12-23
猜你喜欢
  • 2021-11-01
  • 2021-12-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案