【问题标题】:connect to github enterprise from egit over https with a self signed certificate使用自签名证书通过 https 从 egit 连接到 github 企业
【发布时间】:2012-12-19 16:56:33
【问题描述】:

我正在尝试通过来自 egit 的 https 从 github 企业服务器克隆 git repo,但我收到以下错误:

  https://myServer/myOrg/myRepo.git: cannot open git-upload-pack:
  https://myServer/myOrg/myRepo.git: cannot open git-upload-pack

我尝试将以下内容添加到我的 .gitconfig 中,但我遇到了同样的错误。

[http]
sslVerify = false

我可以使用 msysgit 从我的 github 企业服务器克隆一个 repo,没有任何问题。我还可以使用 egit 或 msysgit 在 github 上成功克隆一个 repo。 我正在使用 EGit 的 2.1.0 版本。 我们的 git 服务器不在代理后面,它使用基本身份验证。

知道为什么我不能从 egit 克隆。

【问题讨论】:

  • 您没有在 Eclipse 中配置代理?问题可能是它正在在不应该尝试代理时尝试。
  • 不,我没有在 Eclipse 中配置代理。好主意。

标签: eclipse git https egit github-enterprise


【解决方案1】:

通过设置以下为我工作

[http]
sslVerify = false

请确保使用您正在修改的正确 .gitconfig 文件配置 eclipse

转到窗口 -> 首选项 -> 团队 -> Git -> 配置

“位置”选项必须指向正确的 .gitconfig 文件,例如 H:\.gitconfig

如果不想直接编辑 .gitconfig 文件,可以如下配置

窗口 -> 首选项 -> 团队 -> Git -> 配置 -> 新条目 -> http.sslverify=false

【讨论】:

    猜你喜欢
    • 2013-11-01
    • 1970-01-01
    • 2012-12-31
    • 2021-05-08
    • 2023-03-02
    • 2014-08-05
    • 2014-05-16
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多