@@ -56,33 +56,31 @@ the quick brown fox jumps over the lazy dog
56
56
57
57
Authentication
58
58
--------------
59
- There are two ways to set GitHub user and token info:
59
+ There are two ways to set GitHub user and password info:
60
60
61
- Using env vars GITHUB_USER and GITHUB_TOKEN :
61
+ Using env vars GITHUB_USER and GITHUB_PASSWORD :
62
62
63
63
``` bash
64
64
$ export GITHUB_USER=" your-github-username"
65
- $ export GITHUB_TOKEN =" your-github-token "
65
+ $ export GITHUB_PASSWORD =" your-github-password "
66
66
$ gist ~ /example
67
67
```
68
68
69
- Or by having your git config set up with your GitHub username and token .
69
+ Or by having your git config set up with your GitHub username and password .
70
70
71
71
``` bash
72
72
git config --global github.user " your-github-username"
73
- git config --global github.token " your-github-token "
73
+ git config --global github.password " your-github-password "
74
74
```
75
75
76
- You can find your token under [ your account] ( https://github.com/account ) .
77
-
78
- You can also define github.token to be a command which returns the
79
- actual token on stdout by setting the variable to a command string
76
+ You can also define github.password to be a command which returns the
77
+ actual password on stdout by setting the variable to a command string
80
78
prefixed with ` ! ` . For example, the following command fetches the
81
- token from a password item named "github.token " on the Mac OS
79
+ password from an item named "github.password " on the Mac OS
82
80
Keychain:
83
81
84
82
``` bash
85
- token = ! security 2>&1 > /dev/null find-generic-password -gs github.token | ruby -e ' print $1 if STDIN.gets =~ /^password: \\\"(.*)\\\"$/'
83
+ password = ! security 2>&1 > /dev/null find-generic-password -gs github.password | ruby -e ' print $1 if STDIN.gets =~ /^password: \\\"(.*)\\\"$/'
86
84
```
87
85
88
86
Defaults
0 commit comments