Posted: . At: 9:27 AM. This was 3 years ago. Post ID: 14979
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.


How to get a listing of all email addresses associated with a Github repo.


Getting a listing of all email addresses attached to a Git repo is very easy, this simple command will do this simply.

Just use Git to clone the repo to a folder, then run this command to see all emails.

┌──[jason@192.168.1.2][~/Documents/sysinfo]
└──╼ (master) ╼ $ git log "--format=format:%ae" | sort -u | sed '/noreply/d' | grep '@' > mails.txt

This is a simpler version of this command, this works perfectly.

┌──[jason@192.168.1.2][~/Documents/sysinfo]
└──╼ (master) ╼ $ git log "--format=format:%ae" | sort | uniq

This is a very simple way to get information about a Git repo with the command line.

The example below will show all email addresses of those who made a pull request in the last 3 hours.

┌──[jason@192.168.1.2][~/Documents/sysinfo]
└──╼ (master) ╼ $ git log --since="3 hours ago" "--format=format:%ae" | sort -u | sed '/noreply/d' | grep '@'

This could be very useful indeed.


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.