Win11Git无法连接-Connection refused

有时候为了访问GitHub或者访问外网,我们会使用代理软件。但是使用代理软件,然后关闭代理软件之后,我从GitHub或者gitlab上pull代码就会报错:

Failed to connect to 127.0.0.1 port 1181: Connection refused

找了半天,应该是Git上设置代理了,这是Win11的一个bug。并不是你手动设置的。

解决方法是,在项目上打开terminal终端,输入去除代理的命令:

git config --global --unset http.proxy

然后再操作就没问题了。

猜你喜欢

转载自blog.csdn.net/ramblerviper/article/details/121988998