Document use of personal access token

Closes https://github.com/tpope/vim-rhubarb/issues/2.
This commit is contained in:
Tim Pope
2015-08-02 18:16:15 -04:00
parent b4a939b78c
commit c28b28f7f6

View File

@@ -32,8 +32,9 @@ Provide your GitHub credentials by adding them to your netrc:
echo 'machine api.github.com login <user> password <password>' >> ~/.netrc
There is not currently built-in support for OAuth, but you can add a token to
your netrc if you fetch it by hand:
If you'd rather not store your password in plain text, you can
[generate a personal access token](https://github.com/settings/tokens/new)
and use that instead:
echo 'machine api.github.com login <token> password x-oauth-basic' \
>> ~/.netrc