未验证 提交 4ed61527 编写于 作者: RunAtWorld's avatar RunAtWorld 提交者: GitHub

Create git-skills.md

上级 6ad07d21
# git push 本地不用输入用户名密码
1. 进入~(用户)目录: `cd ~`
2. 建立文件 .git-credentials: `touch  .git-credentials`
3. 编辑文件 .git-credentials: `vi  .git-credentials`
4. 添加 https://用户名:密码@gitlab.com
5. 执行命令:`git config --global credential.helper store`
6. 查看文件:`more .gitconfig` 可以看到如下信息,设置成功。
```
[push]
default = simple
[user]
name = test
email = test@gitlab.com
```
4,5步骤也可以换成,在 `.git-credentials` 中加上如下内容
```
[user]
email = test@gitlab.com
name = test
[credential]
helper = store
```
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册