美文网首页
用git 进行代码行数统计

用git 进行代码行数统计

作者: 毅巍奇诚 | 来源:发表于2019-08-29 09:31 被阅读0次

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

如果要统计所有人就把--author参数去掉

相关文章

网友评论

      本文标题:用git 进行代码行数统计

      本文链接:https://www.haomeiwen.com/subject/ddubectx.html