Skip to content

Instantly share code, notes, and snippets.

@grf
Created February 26, 2010 23:04
Show Gist options
  • Save grf/316290 to your computer and use it in GitHub Desktop.
Save grf/316290 to your computer and use it in GitHub Desktop.
(defun github-auth-info ()
"Returns the user's GitHub authorization information.
Searches for a GitHub username and token in the global git config,
and returns (USERNAME . TOKEN). If nothing is found, prompts
for the info then sets it to the git config."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment