其他分享
首页 > 其他分享> > 解决从github上拉代码时报错“Failed to connect to localhost port 1080: Connection refused”

解决从github上拉代码时报错“Failed to connect to localhost port 1080: Connection refused”

作者:互联网

两行命令解决问题

主要原因是使用了proxy代理,我们只需要关闭代理
git config --global http.proxy //查看代理
显示 localhost:1080
再输入此命令行
git config --global --unset http.proxy //不设置代理
再次重新git clone即可
image

标签:git,1080,--,global,代理,refused,github,proxy
来源: https://www.cnblogs.com/DougallDev/p/16385329.html