问题随记 —— 【Git】Failed to connect to 127.0.0.1 port 31181 after 2066 ms: Connection refused

文章目录

问题描述

修改git代理后再运行git clone 时出现如下问题

Failed to connect to 127.0.0.1 port 31181 after 2066 ms: Connection refused

在这里插入图片描述

解决方法

  • 取消git代理
git config --global --unset http.proxy  
git config --global --unset https.proxy

输入以上命令 取消gitconfig中的http.proxy=127.0.0.1:1080或者https.proxy=127.0.0.1:1080

  • clone 成功

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_21484461/article/details/124163545