项目场景:
用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