List all developers on a project in Git

To show all users & emails, and the number of commits in the CURRENT branch:

git shortlog --summary --numbered --email

Or simply:

git shortlog -sne

To show users from all branches (not only the ones in the current branch) you have to add --all flag:

git shortlog -sne --all

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.


You can try this:

git log | grep Author: | sort | uniq

Tags:

Git