【问题标题】:Cloning repository from Github to windows从 Github 克隆存储库到 windows
【发布时间】:2013-08-09 11:49:13
【问题描述】:

我在 Windows 7 中使用 TortoiseGit 和 MsysGit。我需要将存储库从 github 克隆到我的桌面。我右键单击->Git Clone->https://github.com/username/sample.git.I 得到响应:

Cloning into 'D:\repo\sample'...
error: The requested URL returned error: 407 while accessing https://github.com/TruMobi/sample.git/info/refs?service=git-upload-pack
fatal: HTTP request failed

我已经在 TortoiseGit 中完成了代理设置。 请帮我解决这个问题。

【问题讨论】:

标签: git github tortoisegit


【解决方案1】:

HTTP 407 表示您需要配置 HTTP 代理用户名/密码。我无法帮助您了解您的代理服务器是什么,或使用它的凭据 - 但无论您身在何处,我都会与网络人员核实。

您可以使用git config 命令执行此操作。

$ git config --global http.proxy http://proxyuser:proxypwd@proxy.server.com:8080

我不确定 TortoiseGit 是否有 UI 来设置它,但它很可能有。毫无疑问,它会尊重底层的 git CLI 设置,所以为了确定,我会这样做。

另外,请参阅here 了解更多讨论。

【讨论】:

  • 按照您的指示,我已经完成了更改。现在我得到了新的错误。克隆到 'D:\repo\sample'... 错误:SSL 证书问题,验证 CA 证书是否正常。详细信息:错误:14090086:SSL 例程:SSL3_GET_SERVER_CERTIFICATE:访问github.com/username/sample.git/info/…时证书验证失败@致命:HTTP 请求失败
  • 看起来您有一个自签名证书。现在试试这个:git config --global http.sslVerify false
  • 再次遇到同样的错误请求的URL返回错误:407,同时访问github.com/TruMobi/sample.git/info/refs?service=git-upload-pack致命:HTTP请求失败
  • 当我在上面的评论中给出我的用户名和密码时。它抛出一个错误:克隆到 'D:\repo\trumobi-pim-apps-android'... 错误:在访问 github.com/TruMobi/trumobi-pim-apps-android.git/info/… 时从对等方接收数据时失败 致命:HTTP 请求失败
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2021-12-31
  • 1970-01-01
  • 2016-10-09
  • 1970-01-01
  • 2017-06-24
  • 1970-01-01
  • 2012-05-03
相关资源
最近更新 更多