美文网首页
2021-05-13 WSL环境无法拉取github代码

2021-05-13 WSL环境无法拉取github代码

作者: alanwhy | 来源:发表于2021-05-13 16:20 被阅读0次

报错如下

fatal: unable to access 'https://github.com/visgl/loaders.gl.git/': GnuTLS recv error (-110): The TLS connection was non-properly terminated.

// or

fatal: unable to access 'https://github.com/visgl/loaders.gl.git/': Failed to connect to github.com port 443: Connection refused

// or 

fatal: unable to access 'https://github.com/visgl/loaders.gl.git/': Could not resolve host: github.com

解决办法

  1. 首先保证不能访问 google
  2. 输入命令
git config --global --unset http.proxy
git config --global --unset https.proxy
  1. 如果不行,则输入命令
git config --global url.git://github.com/.insteadOf https://github.com/
  1. 再进行 clone

参考:https://github.com/bower/bower/issues/2288

相关文章

网友评论

      本文标题:2021-05-13 WSL环境无法拉取github代码

      本文链接:https://www.haomeiwen.com/subject/bjkxjltx.html