mac电脑Git Failed to connect to 127.0.0.1 port 1080: Connection refused

268 阅读1分钟

我是在clone项目的时候报的这个错误,因为clone网速特别慢,因为看到网上说,可以配置http.proxy来加快速度,结果速度没有加快,反而不能用了,出现了Failed to connect to 127.0.0.1 port 1080: Connection refused错误

找到git的配置文件删除掉

WeChat3577a81e8b53f0d82f8cc580768e5ab2.png

在用户的根路径下输入

ls -a

打开.gitconfig 找到http的删掉就行