fatal: unable to access ‘https://github.com/.git/’: Failed to conne拒绝连接

解决 fatal: unable to access ‘https://github.com/…/.git’: Could not resolve host: github.com问题

有可能你的gitbub之前设置过代理,只需分别执行如下代码即可:

git config --global --unset http.proxy
git config --global --unset https.proxy

如果还没有解决,可以尝试如下解决方式,亲测有效:

git config --global url.git://github.com/.insteadOf https://github.com/

参考链接

Logo

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

更多推荐