idea提交推送代码到码云出现错误:

unable to access ‘https://gitee.com/…/’: Failed to connect to 127.0.0.1 port 31181 after 2029 ms: Connection refused

发生这种情况是因为代理是在git中配置了。既然它是https代里(而不是http)git config http.proxy和git config --global http.proxy

解决方案一

  1. 看看你的git配置

git config --global -l

看看有没有出现https_proxy = …
如果您有说明出现了与https代里相关的内容,请将其从〜/ .gitconfig文件中删除,然后重试。
如果没有那么问题不在这里。

  1. 如果仍然不起作用,请取消设置环境变量

env|grep -i proxy

你应该有一行或几行https_proxy = …
使用以下内容逐个取消设置:取消设置https_proxy(或HTTPS_PROXY,具体取决于变量的名称)

  1. 再次检查环境变量

env|grep -i proxy

如果它没有显示任何你应该是好的。
注意:此解决方案可以应用于http和https代里问题。只是变量名称从https更改为http。

解决方案二

在开启代里软件的前提下,手动配置git的代理。git客户端输入如下两个命令就可以了。

git config --global http.proxy http://127.0.0.1:1080
git config --global https.proxy http://127.0.0.1:1080

http://也可以改成sockets5://,但是区别在于:socks5不支持通过pubkey免密登录github,每次提交代码只能输入用户名和密码。http可以支持免密登录。

取消代里:

git config --global --unset http.proxy
git config --global --unset https.proxy

其实方案一和方案二是同一种方法,不过方案二更加具体一点罢了,大部分问题都可以用方案二解决,当方案二无效时,考虑使用方案一。

unable to access ‘https://gitee...‘: Failed to connect to 127.0.0.1 port 31181 after 2029 ms: Connec相关推荐

  1. Git ----fatal: unable to access ‘https://gitee.com/***.git/‘: SSL certificate problem: unable

    fatal: unable to access 'https://gitee.com/gzllkm/GZL.git/': SSL certificate problem: unable to get ...

  2. git push失败:Unable to access 'https://gitee.com/Lmui/proxy.git/': Could not resolve host: gitee.com

    Unable to access 'https://gitee.com/Lmui/proxy.git/': Could not resolve host: gitee.com 找到Git/etc文件下 ...

  3. 关于git的fatal: unable to access ‘https://gitee.com/‘: Could not resolve host: gitee.com; Unknown error

    关于GIT 的 fatal: unable to access 'https://gitee.com/项目名称/ceshi.git/': Could not resolve host: gitee.c ...

  4. push代码至gitee码云报错unable to access 'https://gitee.com/*/git/': The requested URL returned error: 403

    第一次使用idea整合gitee插件用来push代码的时候,不小心输错了用户名或密码,导致后续push代码,一直报错:unable to access 'https://gitee.com/*/git ...

  5. fatal: unable to access ‘https://gitee.com/xxx.git/‘: SSL certificate problem:

    早上上班打开电脑,按照惯例更新一下代码,嗯?怎么更新不了了呢!换个项目试试,哎?!怎么还不行,还报错fatal: unable to access 'xxx.git/': SSL certificat ...

  6. fatal: unable to access ‘https://gitee.com/****/****.git/‘: The requested URL returned error

    mac 拉取服务器代码到本地时报错 git clone 的时候报错,百度很久没有找到答案,权限已经配置好的了,这个是前提哦. 后来才发现是clone的地址搞错了,gitee 默认的地址是HTTPS的, ...

  7. git解决fatal: unable to access ‘https://gitee.com/XXX.git/‘: The requested returned error: 403

    403无权限访问 windows用户凭据不一致导致 解决:控制面板->凭据管理器->windows凭据->git:https:gitxxx(把当前账户名更改上去)

  8. fatal: unable to access ‘https://github.com/PX4/PX4-Autopilot.git/‘: Failed to connect to github.com

    错误 :fatal: unable to access 'https://github.com/PX4/PX4-Autopilot.git/': Failed to connect to github ...

  9. fatal: unable to access ‘https://github.comxxxxxxxxxxx‘: Failed to connect to xxxxxxxxxxxxx

    git clone 遇到问题:fatal: unable to access 'https://github.comxxxxxxxxxxx': Failed to connect to xxxxxxx ...

最新文章

  1. VS+Eigen+CUDA compile error: C2244 and MSB3721
  2. Openstack组件部署 — Networking service_Compute Node
  3. golang Reflect包
  4. linux 远程 i o 错误,故意在Linux中导致I / O错误?
  5. 商汤校招 | 春笋计划”
  6. centos7--shell脚本自动实现bond配置-第二版
  7. mysql 列换行 表设计 设计_MySql行转列、列转行
  8. 随想录(锁的来由和使用)
  9. 【金融申请评分卡】目标变量界定
  10. SHON WEBB:真正的自律,就是将这两件事做到极致
  11. Python Pandas 行数据筛选方法汇总
  12. 2021算法竞赛入门班第一节课枚举贪心习题
  13. 华晨宏盛让理财更有实用性的小窍门有哪些?最好的理财方法有哪些
  14. 高盐废水处理工艺——料液精制与除杂
  15. 华三s5000配置镜像接口_H3C S5000交换机简单配置
  16. 如何在 IDEA 中创建并部署 JavaWeb 程序
  17. Caff-Opencv——图像分类(01)
  18. Android 报 Unable to start service Intent { } U=0: not found错误
  19. matlab设l创建网络,利用matlab进行简单的贝叶斯网络构建 | 学步园
  20. Likely root cause: java.lang.IllegalStateException: jar hell!

热门文章

  1. web浏览器录音:web audio api
  2. NTU课程笔记 mas714复习:例题
  3. pytorch笔记:torch.nn.MaxPool2d
  4. 文巾解题 2. 两数相加
  5. sql 时间范围查询_Excel中使用SQL查询,单元格范围最多支持65536行?
  6. ModuleNotFoundError: No module named ‘lib.utils.cython_bbox‘
  7. 使用libsvm对MNIST数据集进行实验
  8. 【极客blog图文讲解】Jekyll教程(针对mac linux)
  9. elasticSearch6源码分析(12)DiscoveryModule
  10. 基于用户画像大数据的电商防刷架构