报错解决:Failed to connect to github.com port 443: Connection refuesd
报错解决:Cloning into 'xxxxx'...fatal: unable to access 'https://github.com/xxxxxxxxx.git/': Failed to connect to 127.0.0.1 port xxxx: Connection refused
文章共336字 · 阅读需要大约2分钟
一键AI生成摘要,助你高效阅读
问答
·
今天在用git下载时遇到错误:
Cloning into 'xxxxx'...
fatal: unable to access 'https://github.com/xxxxxxxx.git/': Failed to connect to github.com port 443: Connection refused
查询后尝试以下方法解决:
1.查看自己的本机系统代理(设置---网络和Internet---代理---地址:端口):
2.修改git配置:(其中的xxxx改为你电脑的端口号)
git config --global http.proxy http://127.0.0.1:xxxx
git config --global https.proxy http://127.0.0.1:xxxx
3.再次执行原先的代码,但是我又遇到了错误:
也就是:
Cloning into 'xxxxxx'...
fatal: unable to access 'https://github.com/xxxxxxx.git/': Failed to connect to 127.0.0.1 port xxxx: Connection refused
我尝试了第2种方法这次解决了问题:
git config --global -l
git config --global http.proxy http://127.0.0.1:1080
git config --global https.proxy http://127.0.0.1:1080
git config --global --unset http.proxy
git config --global --unset https.proxy
git config --global -l
附上运行图片:
参考链接:
https://blog.csdn.net/weixin_46191137/article/details/133739981
更多推荐
已为社区贡献1条内容
所有评论(0)