在使用 git pull命令拉取仓库时,报错:

参考文章:https://blog.csdn.net/m0_54944506/article/details/135652028 

解决方式更改端口号。

直接找到.ssh文件,在c盘里面。

新建一个config文件,然后打开这个文件,输入以下内容:

Host github.com
User git
Hostname ssh.github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
Port 443

保存之后,就可以了。

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐