Symphonious

Living in a state of accord.

Who’s Committed in my Git Repository?

Note to self: if you ever want to get a simple list of people who have committed to a git repository, the command you want is:

git log --format='%aN <%ae>' | sort -u | uniq

Or for just the e-mail address:

git log --format='%ae' | sort -u | uniq

Or for just the name:

git log --format='%aN' | sort -u | uniq

This is in the help manual but it’s way down the bottom so takes ages to read through to find it.

  • Pat says:

    You may also enjoy the “git shortlog” command.

    August 25, 2010 at 6:58 pm

Your email address will not be published. Required fields are marked *

*