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/
本文介绍了解决无法连接GitHub的问题,提供了禁用代理和更改URL配置两种方法,帮助用户顺利克隆或拉取GitHub上的项目。

1万+

被折叠的 条评论
为什么被折叠?



