美文网首页
linux 保存git账号密码

linux 保存git账号密码

作者: pongni | 来源:发表于2018-09-29 14:51 被阅读0次

1.在~/下, touch创建文件 .git-credentials, 用vim编辑此文件,输入内容格式:

1. touch .git-credentials

2. vim .git-credentials

3. https://{username}:{password}@github.com

2.在终端下执行

1. git config --global credential.helper store

3. ~/.gitconfig文件

[credential]

helper = store

4.OK

相关文章

网友评论

      本文标题:linux 保存git账号密码

      本文链接:https://www.haomeiwen.com/subject/xnzvoftx.html