美文网首页
2019-03-01git 统计提交次数及总共代码量

2019-03-01git 统计提交次数及总共代码量

作者: 黑键手记 | 来源:发表于2019-03-01 12:25 被阅读2次

    git查看commit提交次数

        git log --author=仓库用户名 --since="起始时间比如:2019-01-01" --no-merges | grep -e 'commit [a-zA-Z0-9]*' | wc -l
    

    统计代码量

      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 }' -
    

    相关文章

      网友评论

          本文标题:2019-03-01git 统计提交次数及总共代码量

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