Skip to content

Instantly share code, notes, and snippets.

@romac
Created November 2, 2010 09:39
Show Gist options
  • Save romac/659420 to your computer and use it in GitHub Desktop.
Save romac/659420 to your computer and use it in GitHub Desktop.
To make this work, you should first create a password in "Keychain Access" named "github.token" and set the password to your GitHub token.
# To make this work, you should first create a password in "Keychain Access" named "github.token" and set the password to your GitHub token.
[github]
user = USERNAME
token = !security 2>&1 >/dev/null find-generic-password -gs github.token | ruby -e 'print $1 if STDIN.gets =~ /^password: \\\"(.*)\\\"$/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment