Extract and compile email addresses from GitHub users, organizations, and Git repositories, all from commit metadata.
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
Using an alias
alias gh-email="$(curl -fsSL https://raw.githubusercontent.com/r-jb/github-email-extractor/main/gh-email.sh | sh)"
- bash 4+
- git
- gh cli authenticated
- Why use GitHub CLI instead of requesting GitHub's API directly ?
Currently, GitHub's API only allows for 60 unauthenticated requests per hour, which may not be sufficient for most use cases.