Failed connect to github.com:443; No error

简介: 任务目标:将线上已有的https://github.com/eyjian/mooon.git克隆到本地的E:\GitHub\mooon目录 问题描述:使用Git的Windows客户端UI工具GitHub执行克隆操作时报错,查看它的日志,难发现问题,于是改用Git的Windows命令行终端Git Shell操作,得到了较为详细的错误信息,基于错误提示解决了问题,过程描述如下。
任务目标:将线上已有的 https://github.com/eyjian/mooon.git克隆到本地的E:\GitHub\mooon目录
问题描述:使用Git的Windows客户端UI工具GitHub执行克隆操作时报错,查看它的日志,难发现问题,于是改用Git的Windows命令行终端Git Shell操作,得到了较为详细的错误信息,基于错误提示解决了问题,过程描述如下。

打开Git Shell,进入本地的E:\GitHub目录,注意不是E:\GitHub\mooon目录,然后执行克隆命令git clone如下:
E:\GitHub> git clone https://github.com/eyjian/mooon.git
Cloning into 'mooon'...
fatal: unable to access ' https://github.com/eyjian/mooon.git/': Failed connect to github.com:443; No error

遇到错误,克隆失败。通过执行telnet github.com 443,发现网络不通,于是想到设置代理,通过baidu找到设置proxy方法:
1) 打开文件.gitconfig,文件位于用户主目录下,执行ls ~即可看到它。假设Win7登录用户名为tom,则位于C:\Users\tom目录下
2)编辑.gitconfig,在文件尾加入以下内容:
[http]
    proxy = http://www.proxy.com:8080/

[http]顶格写,proxy前保留一个tab,其中www.proxy.com为代理服务器的IP或域名。
完成后,再次执行git clone  https://github.com/eyjian/mooon.git,发现成功了。。。

对文件.gitconfig的操作,实际可以借助git命令来完成,而不必直接编辑.gitconfig,对应的子命令是git config --global,如:git config --global user.name "eyjian",则在.gitconfig文件中可以看到如下内容:
[user]
    name = eyjian

同理,配置proxy命令为:git config --global http.proxy  http://www.proxy.com:8080/

相关文章
|
3天前
|
网络安全 开发工具 git
【git】解决git报错:ssh:connect to host github.com port 22: Connection timed out 亲测有效
【git】解决git报错:ssh:connect to host github.com port 22: Connection timed out 亲测有效
7 1
|
27天前
|
开发工具 git
【已解决】error: failed to push some refs to ‘git@github.com:BATdalao/Github-green.git‘
【已解决】error: failed to push some refs to ‘git@github.com:BATdalao/Github-green.git‘
27 1
|
1月前
|
开发工具 git
出现“error: failed to push some refs to ‘https://github.com/****.git‘”,如何解决问题
出现“error: failed to push some refs to ‘https://github.com/****.git‘”,如何解决问题
|
2月前
|
开发工具 git
github clone Failed to connect to github.com port 443 after xxx ms
github clone Failed to connect to github.com port 443 after xxx ms
99 2
|
2月前
|
Web App开发 缓存 开发工具
Failed to connect to github.com port 443: Operation timed out和弹出无法打开"GoogleSoftwareUpdate.bundle"
Failed to connect to github.com port 443: Operation timed out和弹出无法打开"GoogleSoftwareUpdate.bundle"
42 2
|
2月前
|
存储 Web App开发 安全
如何处理错误消息 HTTP error 421 occurred SSL handshake with github.com
如何处理错误消息 HTTP error 421 occurred SSL handshake with github.com
|
2月前
|
网络虚拟化
解决方案:Github Failed to connect to github.com port 443 after 21224 ms: Timed out
解决方案:Github Failed to connect to github.com port 443 after 21224 ms: Timed out
25 0
|
2月前
|
Linux 开发工具 git
【开发专题_03】unable to access ‘https://github.com/deviantony/docker-elk.git/‘: Failed connect to github
【开发专题_03】unable to access ‘https://github.com/deviantony/docker-elk.git/‘: Failed connect to github
87 2
|
2月前
|
前端开发
Github项目分享——免费的画图工具drow,最新前端面试题整理
Github项目分享——免费的画图工具drow,最新前端面试题整理
|
17天前
|
搜索推荐 开发者 SEO
CSDN 大规模抓取 GitHub 上的项目到 GitCode,伪造开发者主页引公愤
后续影响和发展方向 GitCode是CSDN开发的一个代码托管平台,为了快速获得搜索引擎流量,CSDN采用了惯用的手段,直接搬运大量内容进行填充。接下来,他们很可能会通过SEO农场来污染搜索引擎,以获得更多的流量。这种操作不仅对开发者极不尊重,也对整个互联网环境造成了严重的污染。 写在最后 GitCode 已经出来有挺长时间了,期间没闹出过什么问题。近期,不知道 GitCode 内部的哪位领导脑子被驴踢了,做出搬运 GitHub 的仓库来丰富自己平台内容的决定。 这种无视开发者权益、恶意搬运项目的行为,必将受到开发者社区的强烈谴责,尊重开发者的劳动成果,维护开源社区的良好氛围。开发者们也应团结