From c28b28f7f615d3ec67749d55eb0505281df6b30d Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 2 Aug 2015 18:16:15 -0400 Subject: [PATCH] Document use of personal access token Closes https://github.com/tpope/vim-rhubarb/issues/2. --- README.markdown | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.markdown b/README.markdown index 777f512..83b6c5a 100644 --- a/README.markdown +++ b/README.markdown @@ -32,8 +32,9 @@ Provide your GitHub credentials by adding them to your netrc: echo 'machine api.github.com login 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 password x-oauth-basic' \ >> ~/.netrc