git 每次clone/pull/push码云都要输入密码的解决方案

第一种解决方案:进入项目目录,输入:

git config --global credential.helper store

这里写图片描述

完后,打开.gitconfig文件,发现多了几行标注中的项如上图,以后提交克隆都不用输入密码了。

第二种解决办法:如若不是可能是git开启了双因子控制,通过以下命令可以解决:

git remote -v 
git remote remove origin 
git remote add origin 你的项目仓库地址

猜你喜欢

转载自blog.csdn.net/u012852597/article/details/78822005