List all developers on a project in Git

后端 未结 9 2091
半阙折子戏
半阙折子戏 2020-12-07 08:25

Is it possible to list all users that contributed to a project (users that have done commits) in Git?

Any additional statistics?

9条回答
  •  再見小時候
    2020-12-07 08:55

    Great answers by @pedro-nascimento, by @mic_e and others already solve the problem.

    In addition, you can add the following line to your .gitconfig

    contributors = shortlog -e --summary --numbered
    

    or in shell type

    git config --global alias.contributors 'shortlog -e --summary --numbered'
    

    And after that you can simply invoke: git contributors

提交回复
热议问题