Git Tip #2: Extracting User Data

  • Pull info from commit diffs => grep for usernames and passwords
  • Pull email addresses from user commits, shown below:

– You can pull user email addresses via the CLI: –

  1. Clone a repo to your local client
  2. Pull commit history to display user information
    • $ git log <branch-name>

– Or pull the email address in the browser –

  1. Open a web browser and navigate to a public git repo
  2. Open any project in the browser
  3. Open any commit in the browser by clicking on the commit message
  4. In the URL bar add “.patch” to the commit URI and press enter
  5. At the top of the page the user name and email address associated with that commit will be listed.