idea从码云克隆项目:Failed to connect to 127.0.0.1 port 1181 问题解决

项目场景:

用IDEA克隆码云项目时报地址拒绝问题
在这里插入图片描述


问题描述:

Clone failed:
Unable to access ‘https://gitee.com/kekingcn/file-online-preview.git/’:
Failed to connect to 127.0.0.1 port 1181: Connection refused

Clone failed: Unable to access 'https://gitee.com/kekingcn/file-online-preview.git/': Failed to connect to 127.0.0.1 port 1181: Connection refused

原因分析:

从远程仓库下载代码出现上述的错误是因为使用了proxy代理,所以要解决该问题,核心操作就是要取消代理


解决方案:

//查看git的http代理配置
$ git config --global http.proxy

//取消git的http代理配置
$ git config --global --unset  http.proxy

(或者)

//查看git的https代理配置
$ git config --global https.proxy

//取消git的https代理配置
$ git config --global --unset  https.proxy


在这里插入图片描述

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
THE END
分享
二维码
< <上一篇
下一篇>>