Git的错误error: Failed connect to github.com:443;解决办法
来源:互联网 发布:linux挂载光驱命令 编辑:程序博客网 时间:2024/05/17 01:25
最近在学习git的使用,在建立本地git库并申请了远程GitHub库,想要将本地库关联我的远程库。
就使用以下命令: git remote add origin https://github.com/Username/git.git
注:将Username更换为你自己的GitHub账户名
然后使用以下命令将本地的分支推送到远程: git push -u origin master
这时便出现了错误:
error: Failed connect to github.com:443; Connection refused while accessing https://github.com/JasonLiu1991/git.git/info/refs
fatal: HTTP request failed
就这个问题折腾了半天,终于解决了。
首先说明我的系统是Ubuntu,解决办法就是打开/etc/hosts文件,将github.com对应的行屏蔽掉就可以了
如图显示,屏蔽前三行
现在再去git push就会发现问题解决了,解决方法虽简单,但是找到解决方法的过程很艰辛……..
2 0
- Git的错误error: Failed connect to github.com:443;解决办法
- Github 错误合集:Failed connect to github.com:8080 || Failed connect to github.com:443; No error
- git遇到的诡异错误: Failed connect to github.com:443
- git遇到的诡异错误: Failed connect to github.com:443
- Failed connect to github.com:xxxx 解决办法
- git - error: failed to push some refs to 'https://github.com/xuzhezhaozhao/Practice.git' 解决办法
- 关于ruby安装git(或别网站)的安装包的443port错误(用homebrew做事例)Failed to connect to raw.github.com port 443:
- Git push时报错:Failed connect to github.com:443; No error和The remote end hung up unexpectedly
- [Git]fatal: unable to access ...: Failed to connect to github.com port 443: Timed out
- [Git]fatal: unable to access ...: Failed to connect to github.com port 443: Timed out
- fatal:unable to access '...github.com/.../.git':Failed to connect to github.com port 443: Timed out
- error: failed to push some refs to 'git@github.com:
- github unable to access 'https://github.com/...: Failed to connect to github.com port 443‘
- 解决github unable to access 'https://github.com/...: Failed to connect to github.com port 443
- github unable to access 'https://github.com/...: Failed to connect to github.com port 443‘
- github unable to access 'https://github.com/...: Failed to connect to github.com port 443‘
- git配置的时候出现connect to host github.com port 22 bad file number解决办法
- 下载android代码过程中,提示以下错误: error: Failed connect to android.googlesource.com:443;
- windows下如何下载并安装Python 3.5.
- hibernate参数设置
- Qt-5.5.1 设置界面字体为微软雅黑
- 贪心算法
- 前台传过来的中文在数据库中搜不到结果的解决办法
- Git的错误error: Failed connect to github.com:443;解决办法
- javascript中的闭包问题
- jdk1.5、1.6、1.7新特性详细介绍(整理)
- 微信支付及支付宝支付开发指南
- 给定一行字符,逆序输出此行(空格.数字不输出)
- Linux常用命令之(一)
- CODEFORCES, 450E Jzzhu and Apples <筛素数>
- LeetCode:Contains Duplicate系列
- Android性能优化之常见的内存泄漏