无法连接到github.com端口443:操作超时 [英] Failed to connect to github.com port 443: Operation timed out

查看:1271
本文介绍了无法连接到github.com端口443:操作超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

git clone https://github.com/RubyLouvre/avalon
Cloning into 'avalon'...
fatal: unable to access 'https://github.com/RubyLouvre/avalon/': Failed to connect to github.com port 443: Operation timed out

我不能使用https克隆任何存储库,但可以通过SSH克隆它们.

I can not use https to clone any repo,but I can clone them by SSH.

git clone git@github.com:RubyLouvre/avalon.git
Cloning into 'avalon'...
remote: Counting objects: 33102, done.
remote: Compressing objects: 100% (44/44), done.

这是什么问题?即使我设置了代理服务器,但仍然无法正常工作.我尝试了很多网络环境,但这没有任何意义.

What is the problem with this?Even I set proxy,but it is still not working.I try much of Network environment,but it make no sense.

推荐答案

如果您使用代理进行网络连接,则必须将代理添加到git配置文件中.使用以下命令添加代理.

If you are using proxy for network connection, then you will have to add proxy to git config file. Use the below command to add proxy.

git config --global http.proxy http[s]://username:password@proxyipaddress:portnumber

这篇关于无法连接到github.com端口443:操作超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆