克隆存储库从Github到windows

时间:2013-08-09 11:49:14

标签: git github tortoisegit

我在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中完成了代理设置。 请帮我解决这个问题。

1 个答案:

答案 0 :(得分:6)

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

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

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

我不确定TortoiseGit是否有设置此功能的UI,但很有可能。毫无疑问,它会尊重底层的git CLI设置,所以我只是为了确保这一点。

另外,请参阅here以获取更多讨论。