git clone 报错 Clone failed: Authentication failed for

新装了系统,git和phpstorm的配置全都没有了,重新安装了git和phpstorm

系统:windows10

代码托管平台:阿里云code

软件的安装不作赘述。

报错1 Could not read from remote repository

解决办法:生成key

命令:

ssh-keygen -t rsa -C "[email protected]"

新的可以在C:\Users\用户名\.ssh下,复制id_rsa.pub的内容,进入代码托管平台,添加一个新的key,操作略。

此时,phpstorm在clone代码的时候回弹出登录框,输入代码平台的账号和密码,直接clone。

然而,有时候忘记了账号和密码,第一次输错了,结果再也不弹出登录框了,每次的报错信息都是

Clone failed: Authentication failed for

扫描二维码关注公众号,回复: 6176214 查看本文章

解决办法:

在git-bash命令行输入

git config --system --unset credential.helper

再去clone,弹出了,输入正确的账号和密码,进入成功。

猜你喜欢

转载自blog.csdn.net/qq_38157006/article/details/89952515