您的位置:首页 > 其它

解决git pull 每一次都需要输入密码的问题

2017-07-28 11:04 141 查看
方法1:

当我们配置好我们的git以后呢,我们可以在配置文件
~/.gitconfig
~/.config/git/config
文件里加入这么两行:

[credential]
helper=store

这样的话,git就会帮助我们记住密码了;

方法2:

当然也可以直接通过命令进行配置,如下:

gitconfig--globalcredential.helperstore


(*******补充:方法二的命令很好理解,与配置用用户信息的格式相似的:

$gitconfig--globaluser.name"JohnDoe"
$gitconfig--globaluser.emailjohndoe@example.com
$gitconfig--globalcore.editoremacs
配置完以后,配置文件的内容如下:

1[user]
2name=JoheDoe
3email=johndoe@example.com
4[core]
5editor=emacs
6[credential]
7helper=store
********)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐