List all developers on a project in Git

后端 未结 9 2118
半阙折子戏
半阙折子戏 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:56

    If you want to be more specific in the list (find a list of unique committer and author), you could use git log:

    git log --pretty="%an %ae%n%cn %ce" | sort | uniq
    
    • %an author name
    • %ae author email
    • %n new line
    • %cn committer name
    • %ce committer email

    Other placeholders are described in the pretty print documentation of git log.

提交回复
热议问题