Skip to content

Instantly share code, notes, and snippets.

@barrbrain barrbrain/.gitconfig forked from cactus/.netrc
Last active Dec 15, 2015

What would you like to do?
[url ""]
insteadof =
# .netrc
machine login <token>
# Explicitly add gist rather than exposing token to all github subdomains
machine login <token>

$ curl -u 'username' -d '{ "scopes": ["repo"], "note": "Command-line access" }'

Enter host password for user 'username': [type password]
  "scopes": [
  "token": "your_token",
  "app": {
    "url": "",
    "name": "Command-line access (API)"
  "url": "",
  "note": "Command-line access",
  "note_url": null,
  "id": 123456,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.