mirror of
https://github.com/tpope/vim-rhubarb.git
synced 2026-08-12 02:42:44 +08:00
Document use of personal access token
Closes https://github.com/tpope/vim-rhubarb/issues/2.
This commit is contained in:
+3
-2
@@ -32,8 +32,9 @@ Provide your GitHub credentials by adding them to your netrc:
|
|||||||
|
|
||||||
echo 'machine api.github.com login <user> password <password>' >> ~/.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
|
If you'd rather not store your password in plain text, you can
|
||||||
your netrc if you fetch it by hand:
|
[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' \
|
echo 'machine api.github.com login <token> password x-oauth-basic' \
|
||||||
>> ~/.netrc
|
>> ~/.netrc
|
||||||
|
|||||||
Reference in New Issue
Block a user