总代码量:
git log --author="" --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 --since=“2015-02-01” --format=’%aN’ | sort -u | while read name; do echo -en “KaTeX parse error: Undefined control sequence: \t at position 5: name\̲t̲"; git log --si…name” --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

查看项目总代码量;项目代码量估值(git)
粘贴后切记要检查下单引号双引号的格式,必须是英文符号才行

相关文章:

  • 2021-09-10
  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
  • 2021-09-18
  • 2021-11-13
  • 2022-01-12
  • 2021-12-07
猜你喜欢
  • 2021-12-01
  • 2021-11-23
  • 2021-10-20
  • 2021-11-23
  • 2022-12-23
  • 2021-12-10
  • 2021-11-23
相关资源
相似解决方案