想把项目同步到码云中,遇到以下错误
在网上找到解决方案
1、连接超时,首先找到git的安装目录,找到/etc/ssh/ssh_config文件
在cmd中输入: where git 查看git的安装目录。
2、用notepad++打开,复制这几句到该文件最后
Host github.com
User git
Hostname ssh.github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
Port 443
成功解决问题。
原文连接:https://www.jianshu.com/p/5ddb6b259687