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

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐