/github-email-extractor

Retrieve emails from commits

Primary LanguageShellMIT LicenseMIT

GitHub Email Extractor

GitHub Email Extractor

Extract email addresses from commit metadata. This script supports GitHub users, organizations, and Git repositories.

Installation

Using wget
  wget https://raw.githubusercontent.com/r-jb/github-email-extractor/main/gh-email.sh
  chmod +x gh-email.sh
  ./gh-email.sh
Using curl
  curl -O https://raw.githubusercontent.com/r-jb/github-email-extractor/main/gh-email.sh
  chmod +x gh-email.sh
  ./gh-email.sh

Requirements

Note

By default, the script accesses GitHub's unauthenticated API, which is limited to 60 requests per hour. Authenticate using the gh CLI to increase this limit and scan private repos.

  • bash 4+
  • git
  • curl
  • awk or gawk, not mawk
  • (Optional) gh cli authenticated

Alternatives