• Git---git shortlog查看贡献者,对比贡献次数(功能型命令)


    1. 返回每个贡献者的commit次数以及每次commit的commit message

    git shortlog 

      

    2. 添加参数可以使返回简洁明了

    1. 其可以添加参数:
    2. s:省略每次 commit 的注释,仅仅返回一个简单的统计。
    3. n:按照 commit 数量从多到少的顺利对用户进行排序。
    4. 加上这两个参数之后就可以看到每个用户中的提交次数以及排名情况:
    5. 更详细的参数说明:
    6. -c, --committer group by committer rather than author
    7. 按提交人而非作者分组
    8. -n, --numbered sort output according to the number of commits per author
    9. 根据每个作者的提交次数对输出进行排序
    10. -s, --summary suppress commit descriptions, only provides commit count
    11. 抑制提交描述,仅提供提交计数(精简打印数据)
    12. -e, --email show the email address of each author
    13. 显示每个作者的电子邮件地址

    -s 省略提交注释并返回所有贡献者列表: 

    git shortlog -s 

     -n 按照贡献数量从多到少排序:

    git shortlog -sn   // 常用的命令

     -c 安装提交者而非作者来展示

    1. git shortlog -c
    2. git shortlog -snc // 简化版说明-c作用

     

    -e 在其作者后面显示对应的邮箱

    git shortlog -sne // 简化版说明-e的作用

     

    终极组合命令查看:

    git shortlog -sne   // -c 显示提交者而非作者,视情况添加使用吧
    1. git shortlog -sn --merges // 添加一个--no-merges标志,以显示合并提交的次数
    2. git shortlog -sn --no-merges // 添加一个--no-merges标志,以忽略合并提交的次数

     一般情况下合并使用,主要为了查看下对应的提交,没别的作用!

  • 相关阅读:
    SpringBoot 的版本、打包、Maven
    springboot中日期类型参数的转换处理
    Educational Codeforces Round 134 (Rated for Div. 2)
    什么是雷曼时刻(Lehman Moment)
    智能控制理论及应用 王耀南等编著
    【精选】OpenCV多视角摄像头融合的目标检测系统:全面部署指南&源代码
    第2 章 战略管理
    数据库批处理
    【面试】C/C++面试八股
    行情不好,要不考个研?
  • 原文地址:https://blog.csdn.net/COCOLI_BK/article/details/128134815