Skip to content

Instantly share code, notes, and snippets.

@ternera
Created November 12, 2024 21:03
Show Gist options
  • Save ternera/085a8bf800c6e38d5b58ab4b2b5004c6 to your computer and use it in GitHub Desktop.
Save ternera/085a8bf800c6e38d5b58ab4b2b5004c6 to your computer and use it in GitHub Desktop.
Scrape email addresses of contributors to any Github repository

Running the command below will show the email addresses of every contributor to a Github repository. This information is publicly accessible.

  1. Install Git on your computer.
  2. Clone a repository to your local computer.
  3. Open the terminal in the location of the repository.
  4. Run the command below (works in MacOS, Linux, Unix, etc).

git log | grep @ | cut -d' ' -f3 | tr -d '><'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment