1,提交Top5:

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


2,某用户提交的代码统计

git log --author="$(git config --get user.name)" --pretty=tformat: --numstat | gawk '{ add += $1 ; subs += $2 ; loc += $1 - $2 } END { printf "added lines: %s removed lines : %s total lines: %s\n",add,subs,loc }' 

3,eg:

查看Git提交的代码统计

 

 

相关文章:

  • 2022-12-23
  • 2021-11-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-10
  • 2022-12-23
  • 2021-08-19
  • 2021-08-27
猜你喜欢
  • 2021-08-13
  • 2021-08-09
  • 2022-12-23
  • 2022-12-23
  • 2021-11-16
  • 2022-12-23
相关资源
相似解决方案