git - 代理 : Received HTTP code 503 from proxy after CONNECT 背后的公司 Github

标签 git github proxy git-config corporate

我正在尝试从公司 git 存储库克隆,但一段时间后总是收到此错误消息:

严重:无法访问 URL:连接后从代理接收到 HTTP 代码 503

我有以下 .gitconfig 文件:

[https]
    sslVerify = false
    proxy = https://proxy.corpadderess:8080
[http]
    sslVerify = false
    proxy = http://proxy.corpadderess:8080  

最佳答案

如果它是公司仓库,您可能希望忽略代理设置。您的问题的一种可能解决方案是:

  1. 忽略代理:export no_proxy=YOUR_CORP_DOMAIN_ON_GITHUB,其中域名可能为github.acme.net

  2. 忽略 SSL 验证:git config --global http.sslVerify "false"

然后您可以使用 git clone YOUR_HTTPS_CLONE_URL 克隆存储库

关于git - 代理 : Received HTTP code 503 from proxy after CONNECT 背后的公司 Github,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41923263/

相关文章:

git - Mavericks PHPStorm 错误运行 git .../usr/bin/git

git - 在 git diff 输出中更改前后的行数

github - 如何在 GitHub wiki 中创建某种目录?

github - 为 Github 构建 Golang 发布二进制文件

c++ - 避免配置类为单例

linux - git gc : no space left on device, 即使可用 3GB 而 tmp_pack 只有 16MB

java - Intellij 文件未找到或已损坏

通过 https 代理使用时 git clone 超时

node.js - 在 Node JS 中使用代理和 Undici Fetch 请求

git - 在 Visual Studio 2015 中删除 git 映射