解决 Push failed: Unable to access ‘https://github.com/…’: Failed to connect to 127.0.0.1 port xxx Connection Refused

问题

Android studio 下连接到github,share project的时候已经成功建立repo,但是push的时候总会出现如上错误。

跳过的坑

百度了很多方法,绝大多数都是以下两种答案,终归都是说因为代理问题

  • 有说需要取消代理,但想想自己也没有做过任何代理
    env|grep -I proxy 也没有列出任何proxy,所以此方案无效。
  • 还有说需要修改 gradle.properties, 但找了半天也没有找到任何和代理相关的东西,C/User/.gradle里也找不到有些文章所说的 gradle.properties,所以此方案无效。

最终解决方法

终归还是代理问题。。。
Windows 全局搜索.gitconfig,删除有关proxy的所有行,其他的不用管,再次用Android Studio 里的push以后就可以了。

当看到 Push successful: Pushed master to new branch origin/master。。。 又填平一个坑

解决 Push failed: Unable to access 'https://github.com/...': Failed to connect ...Connection Refused相关推荐

  1. Push failed Unable to access ‘https://github.com/‘: Failed to connect to github.com port 443: Timed

    GitHub推送到远程仓库报错: Push failed Unable to access 'https://github.com/': Failed to connect to github.com ...

  2. 解决github unable to access ‘https://github.com/...: Failed to connect to github.com port 443

    当我们使用git clone下载仓库代码的时候,出现github unable to access 'https://github.com/...: Failed to connect to gith ...

  3. 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 ...

  4. Git报错解决:fatal: unable to access ‘https://github.com/...‘: OpenSSL SSL_read:..., errno 10054

    Git报错解决:fatal: unable to access 'https://github.com/-': OpenSSL SSL_read: Connection was reset, errn ...

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

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

  6. unable to access ‘https://github.com/***.git‘: OpenSSL SSL_read: Connection was reset, errno 10054

    Git提交项目报错: unable to access 'https://github.com/***.git': OpenSSL SSL_read: Connection was reset, er ...

  7. 解决GitHub连不上的问题fatal: unable to access ‘https://github.com/..’: Failed to connect to github.com port

    解决GitHub连不上的问题 fatal: unable to access 'https://github.com/dmlc/dgl.git': Failed to connect to githu ...

  8. 解决:fatal: unable to access ‘https://github.com/xxxxxxxxxxxxxxx/‘: Failed to connect

    完整报错信息:fatal: unable to access 'https://github.com/xxxxxxxxxx/': Failed to connect to github.com por ...

  9. github push报 Unable to access ‘https://github.com/xxxx/xxxx.git/‘: OpenSSL SSL_read: Connection was

    idea操作git时 报 Unable to access 'https://github.com/xxxx/xxxx.git/': OpenSSL SSL_read: Connection was ...

最新文章

  1. [Win7]如何还原[.bat]文件关联
  2. 1:1 人脸比对 开源_Hacktoberfest:我的开源门户
  3. pyqt5实战之透明样式和页面切换和弹出新窗口
  4. 2、Mysql 8.0.20最新版本修改密码
  5. Request和Response-学习笔记02【请求转发和request共享数据、Request_获取ServletContext、request登录案例】
  6. html5 支持php标签吗,HTML5新增标签使用方法
  7. dm_php库,dmandwp系统 PHP建站系统+wordpress建站和DM系统区块+安装教程
  8. mybatis里mapper.xml中SQL语句if语句嵌套if语句
  9. 想赚钱,赚大钱,必须要有商业思维
  10. 名企面试官精讲典型编程题之数据结构字符串篇
  11. 20191206每日一句
  12. 机器学习- 吴恩达Andrew Ng - week3-2 Logistic Regression Model
  13. 酷派D530刷机指引之官方ROM
  14. stata15中文乱码_如何解决Stata14的中文乱码问题
  15. 酒店管理系统-可行性研究报告
  16. 大话西游2服务器修改,大话西游2:9.17维护解读:五倍次数修改全服上线,灵兽村要变样啦...
  17. 【Beta】 第四次Daily Scrum Meeting
  18. 《Java编程思想第五章》:初始化与内存
  19. 《信息学奥赛一本通》宠物小精灵之收服
  20. linux下kegg注释软件,科学网—生物信息——kegg分析的kobas软件的安装与使用 - 孙朋川的博文...

热门文章

  1. 关系;关系模式;关系数据库
  2. 一文读懂SIMD指令集 目前最全SSE/AVX介绍
  3. IP地址,子网掩码和网关
  4. Linux终端、关机、ldd、ldconfig等系统命令
  5. 【编译原理】-- 第二章(三)(文法的化简改造、无用产生式、产生式的消除、文法的其他表示方法、例题)
  6. 嵌入式硬件构件与底层驱动构件基本规范
  7. 无法打开JFrame窗口
  8. nginx 配置集群
  9. C语言/C++【switch语句详解(用法、规则、流程图、实例)】
  10. IE浏览器不能上网其他浏览器可以解决办法