#### 1. git shortlog 介绍 --- `git shortlog` 命令用于汇总 git 日志。 该命令会将 git 的提交记录按照作者进行分组,并显示每个作者 commit 的次数 #### 2. git shortlog 使用 --- 按照作者进行分组,显示每个作者提交次数和所有提交记录 ``` git shortlog ``` `-n, --numbered` 根据每个作者的提交数量降序排列,默认是按照作者名称字母排序的 ``` git shortlog --numbered ``` `-s, --summary` 不列出每个提交记录,只显示提交次数 ``` git shortlog --summary ``` 多个参数结合使用 ``` # 按照提交次数排序,并且不列出提交记录 git shortlog -n -s # 多个参数可以连写 git shortlog -ns ```