.git/‘: Failed to connect to 127.0.0.1 port 1080: Connection refused

错误产生环境

换了一台电脑之后git 无法克隆项目和同步代码

错误描述

.git/': Failed to connect to 127.0.0.1 port 1080: Connection refused

在这里插入图片描述

错误原因

本地使用了端口代理,导致连接失败

解决办法

在本机全局搜索 gitconfig
在这里插入图片描述
在这里插入图片描述

打开文件,删除有关proxy的所有行,只删除与 proxy 有关的,其他的不用管,再次git clone 和 npm install就没有问题了

猜你喜欢

转载自blog.csdn.net/qq_42025798/article/details/124377482