Skip to content

Instantly share code, notes, and snippets.

@jcansdale
Last active December 8, 2019 23:23
Show Gist options
  • Save jcansdale/f65f8e2c182ae350c17a863adefbb977 to your computer and use it in GitHub Desktop.
Save jcansdale/f65f8e2c182ae350c17a863adefbb977 to your computer and use it in GitHub Desktop.
Retrieve a GitHub authentication token

Try entering the following in Git Bash:

$ git credential fill
protocol=https
host=github.com

(note the blank line)

this should return...

protocol=https
host=github.com
path=
username=<your-user>
password=<authentication-token>

You should be able to use <authentication-token> to create Gists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment