8000 解决向github提交代码不用输入帐号密码 · Tinywan/lua-nginx-redis@0003e16 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0003e16

Browse files
committed
解决向github提交代码不用输入帐号密码
1 parent 39fd41c commit 0003e16

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,5 +117,20 @@
117117
118118
return result;
119119
```
120+
### 解决向github提交代码不用输入帐号密码
121+
* 在命令行输入以下命令
122+
```
123+
git config --global credential.helper store
124+
```
125+
126+
> 这一步会在用户目录下的.gitconfig文件最后添加:
127+
128+
```
129+
[credential]
130+
helper = store
131+
```
132+
* push 代码
133+
134+
> push你的代码 (git push), 这时会让你输入用户名和密码, 这一步输入的用户名密码会被记住, 下次再push代码时就不用输入用户名密码!这一步会在用户目录下生成文件.git-credential记录用户名密码的信息。
120135
121136

0 commit comments

Comments
 (0)
0