git clone 通过 HTTPs 超时

标签 git https timeout clone cocoapods

我正在通过 HTTPs 使用 git clone

git clone https://github.com/BoltsFramework/Bolts-iOS.git

得到这个

Failed connect to github.com:443; Operation timed out

问题是它失败了 10 次中的 9 次。非常不可预测。我更新为使用 homebrew git version 2.0.1 并且 openssl 似乎是最新的

OpenSSL 0.9.8za 5 Jun 2014 built on: Aug 10 2014 platform: darwin64-x86_64-llvm

我的 .gitconfig 文件中有这些

[credential]
    helper = osxkeychain
[http]
    sslVerify = false
    postBuffer = 524288000
[https]
    sslVerify = false
    postBuffer = 524288000

但是问题依然存在。这会导致这样的问题 Attempt to read non existent folder

如何解决这个问题?

最佳答案

您在代理后工作吗?您是否尝试过在备用连接上运行相同的命令,比如说您家或 friend 的宽带/有线互联网或您的手机?

我遇到过很多类似的问题,而公司代理通常是罪魁祸首。我这样说是因为当涉及到像 github 这样广泛使用和可用的东西时,它很可能是你这边的东西,而不是 github。

关于git clone 通过 HTTPs 超时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26317183/

相关文章:

git push origin 在总消息后挂起

wordpress - 混合内容 - SSL http/https 问题

ruby - Net::HTTP 中的服务器名称指示支持?

php - PHP 脚本运行 90 秒后内部服务器错误 500

repository - 使用 "git commit -a"命令时遇到问题

git mergetool 无法正确进行三向 merge

python - Hbase超时错误不断出现

Linux 读取 - x 秒后超时*空闲*

git - 为什么两次压缩相同的内容会得到两个具有不同 SHA1 的文件?

python - 使用 PEM 证书的 HTTPS 连接