【问题标题】:Failed to connect to github.com port 443: Operation timed out连接github.com 443端口失败:操作超时
【发布时间】:2016-07-29 16:15:58
【问题描述】:
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 克隆任何 repo,但我可以通过 SSH 克隆它们。

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

这有什么问题?我什至设置了代理,但它仍然无法正常工作。我尝试了很多网络环境,但没有任何意义。

【问题讨论】:

标签: git github


【解决方案1】:

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

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

【讨论】:

    【解决方案2】:

    尝试检查主机并删除 github 的代理

    示例:

    # rm it
    199.232.96.133 raw.githubusercontent.com
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-09-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-10-22
      相关资源
      最近更新 更多