解决git clone时报错:SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443

今天在github上clone代码时,出现错误:

LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443

通过上网查找,总结了几种问题的解决方法:

  1. 设置全局参数:
git config --global --unset http.proxy
git config --global --unset https.proxy
  1. 通过管理员权限使用记事本修改hosts文件(路径:C:\Windows\System32\drivers\etc):
    把下面这句映射加到最后即可(我的这次问题就是通过这种方式解决的):
    这种方法参考:https://blog.csdn.net/zhige_me/article/details/81606228
192.30.253.112  github.com

你可能感兴趣的:(git,openssl)