0
点赞
收藏
分享

微信扫一扫

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

转角一扇门 2022-04-24 阅读 89
buggit

错误产生环境

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

错误描述

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

在这里插入图片描述

错误原因

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

解决办法

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

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

举报

相关推荐

0 条评论