Skip to main content
Notice removed Needs detailed answers by Rubén
added 145 characters in body
Source Link
Dave Jarvis
  • 646
  • 1
  • 6
  • 17

For a command-line adventure using a script I've modified:

  1. Visit https://github.com/DaveJarvis/github-email
  2. Follow the instructions to install into $HOME/bin.
  3. Set your GitHub token.
  4. Open a new terminal.
  5. Run: github-email username

The script automates using GitHub's HTTP REST API to go a bit beyond looking at GitHubfind email addresses associated with Git commit histories. The script will try findingalso look for the user's contact information from a few different sources. You could perform all the steps the script takes from within a web browser.

The key line from the script is to retrieve all commits against a particular repository (owned by the user whose email address is desired):

# Find all commits against the repository
$CMD -H "$PARAM_GITHUB_TOKEN" "$API_GITHUB/repos/$ARG_USERNAME/$ARG_REPOSITORY/commits" \
  | jq -r ".[] | .commit | .author | $NAME_FORMAT" 2>/dev/null \
  | sort \
  | uniq

For a command-line adventure using a script I've modified:

  1. Visit https://github.com/DaveJarvis/github-email
  2. Follow the instructions to install into $HOME/bin.
  3. Set your GitHub token.
  4. Open a new terminal.
  5. Run: github-email username

The script automates using GitHub's HTTP REST API to go a bit beyond looking at GitHub. The script will try finding the user's contact information from a few different sources. You could perform all the steps the script takes from within a web browser.

The key line from the script is to retrieve all commits against a particular repository (owned by the user whose email address is desired):

# Find all commits against the repository
$CMD -H "$PARAM_GITHUB_TOKEN" "$API_GITHUB/repos/$ARG_USERNAME/$ARG_REPOSITORY/commits" \
  | jq -r ".[] | .commit | .author | $NAME_FORMAT" 2>/dev/null \
  | sort \
  | uniq

For a command-line adventure using a script I've modified:

  1. Visit https://github.com/DaveJarvis/github-email
  2. Follow the instructions to install into $HOME/bin.
  3. Set your GitHub token.
  4. Open a new terminal.
  5. Run: github-email username

The script automates using GitHub's HTTP REST API to find email addresses associated with Git commit histories. The script will also look for the user's contact information from a few different sources. You could perform all the steps the script takes from within a web browser.

The key line from the script is to retrieve all commits against a particular repository (owned by the user whose email address is desired):

# Find all commits against the repository
$CMD -H "$PARAM_GITHUB_TOKEN" "$API_GITHUB/repos/$ARG_USERNAME/$ARG_REPOSITORY/commits" \
  | jq -r ".[] | .commit | .author | $NAME_FORMAT" 2>/dev/null \
  | sort \
  | uniq
added 145 characters in body
Source Link
Dave Jarvis
  • 646
  • 1
  • 6
  • 17

For a command-line adventure using a script I've modified:

  1. Visit https://github.com/DaveJarvis/github-email
  2. Follow the instructions to install into $HOME/bin.
  3. Set your GitHub token.
  4. Open a new terminal.
  5. Run: github-email username

The script goesautomates using GitHub's HTTP REST API to go a bit beyond looking at GitHub. The script will try finding the user's contact information from a few different sources. You could perform all the steps the script takes from within a web browser.

The key line from the script is to retrieve all commits against a particular repository (owned by the user whose email address is desired):

# Find all commits against the repository
$CMD -H "$PARAM_GITHUB_TOKEN" "$API_GITHUB/repos/$ARG_USERNAME/$ARG_REPOSITORY/commits" \
  | jq -r ".[] | .commit | .author | $NAME_FORMAT" 2>/dev/null \
  | sort \
  | uniq

For a command-line adventure:

  1. Visit https://github.com/DaveJarvis/github-email
  2. Follow the instructions to install into $HOME/bin.
  3. Set your GitHub token.
  4. Open a new terminal.
  5. Run: github-email username

The script goes a bit beyond looking at GitHub.

For a command-line adventure using a script I've modified:

  1. Visit https://github.com/DaveJarvis/github-email
  2. Follow the instructions to install into $HOME/bin.
  3. Set your GitHub token.
  4. Open a new terminal.
  5. Run: github-email username

The script automates using GitHub's HTTP REST API to go a bit beyond looking at GitHub. The script will try finding the user's contact information from a few different sources. You could perform all the steps the script takes from within a web browser.

The key line from the script is to retrieve all commits against a particular repository (owned by the user whose email address is desired):

# Find all commits against the repository
$CMD -H "$PARAM_GITHUB_TOKEN" "$API_GITHUB/repos/$ARG_USERNAME/$ARG_REPOSITORY/commits" \
  | jq -r ".[] | .commit | .author | $NAME_FORMAT" 2>/dev/null \
  | sort \
  | uniq
Notice added Needs detailed answers by Rubén
Source Link
Dave Jarvis
  • 646
  • 1
  • 6
  • 17

For a command-line adventure:

  1. Visit https://github.com/DaveJarvis/github-email
  2. Follow the instructions to install into $HOME/bin.
  3. Set your GitHub token.
  4. Open a new terminal.
  5. Run: github-email username

The script goes a bit beyond looking at GitHub.