美文网首页
解决git pull/push每次都要输入密码问题

解决git pull/push每次都要输入密码问题

作者: GovS_777 | 来源:发表于2018-09-15 03:26 被阅读0次

解决git pull/push每次都要输入密码问题

一.现象

在服务器上每次git pull代码,都提示输入用户名密码。

二.原因

根据网上资料:git clone时连接的是https而不是git@git形式

三.解决办法

git目录下,执行命令:

git config --global credential.helper store

然后再进行一次git pull,这次输完密码后,之后的git pull就不用输密码了。

相关文章

网友评论

      本文标题:解决git pull/push每次都要输入密码问题

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