Extract email addresses from commit metadata. This script supports GitHub users, organizations, and Git repositories.
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
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