第一种解决方案:进入项目目录,输入:
git config --global credential.helper store
完后,打开.gitconfig文件,发现多了几行标注中的项如上图,以后提交克隆都不用输入密码了。
第二种解决办法:如若不是可能是git开启了双因子控制,通过以下命令可以解决:
git remote -v
git remote remove origin
git remote add origin 你的项目仓库地址
第一种解决方案:进入项目目录,输入:
git config --global credential.helper store
完后,打开.gitconfig文件,发现多了几行标注中的项如上图,以后提交克隆都不用输入密码了。
第二种解决办法:如若不是可能是git开启了双因子控制,通过以下命令可以解决:
git remote -v
git remote remove origin
git remote add origin 你的项目仓库地址