git 克隆卡在检查源上
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/34035588/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Cloning stuck on checking source
提问by bleyk
I'm using sourcetree and I plan to clone a repository from our github but my sourcetree got stuck on "checking source" I wonder whats the problem and how could I resolve it. I already tried using the embedded git but still it does not work
我正在使用 sourcetree,我计划从我们的 github 克隆一个存储库,但我的 sourcetree 卡在“检查源”上,我想知道是什么问题,我该如何解决它。我已经尝试使用嵌入式 git 但它仍然不起作用
回答by nthieling
Looks like no one was able to help with this issue. I found that getting stuck on "checking source" generally means an issue with your Git client. This can boil down to a few things.
似乎没有人能够帮助解决这个问题。我发现卡在“检查源代码”上通常意味着您的 Git 客户端存在问题。这可以归结为几件事。
- Basic configuration
Are you using system/pre-existing Git, and it was removed or configured incorrectly? You may need to fix this, or switch to the "embedded Git" that SourceTree can install. - Credential failure
Double-check to make sure all of your credentials are correct (or delete them entirely to re-enter). SourceTree keeps authentication information in Tools > Options > Authentication. - SSH keys/client configuration
By default you'll find SourceTree attempting to communicate via SSH, this may or may not work with some hosts, if you do not have them trusted or "known". You can test getting around this by using HTTP(S) to clone your repository.
- 基本配置
您是否使用系统/预先存在的 Git,并且它被删除或配置不正确?您可能需要修复此问题,或切换到 SourceTree 可以安装的“嵌入式 Git”。 - 凭据失败
仔细检查以确保所有凭据都正确(或完全删除它们以重新输入)。SourceTree 将身份验证信息保存在工具 > 选项 > 身份验证中。 - SSH 密钥/客户端配置
默认情况下,您会发现 SourceTree 尝试通过 SSH 进行通信,如果您不信任或“已知”它们,这可能会或可能不适用于某些主机。您可以通过使用 HTTP(S) 克隆您的存储库来测试解决此问题。
SourceTree doesn't make it very easy to observe when issues arise like this, just the ominous "checking source" that I was plagued with as well. If you haven't already figured it out or nuked it from orbit, hopefully this helps!
当出现这样的问题时,SourceTree 并不能很容易地观察到,只是我也被困扰的不祥的“检查源”。如果您还没有弄清楚或从轨道上核对它,希望这会有所帮助!
回答by StoneAgeCoder
It could may well be the fact that the DNS server is not responding with the hostname you provided. Try using the actual IP.
很可能是因为 DNS 服务器没有使用您提供的主机名进行响应。尝试使用实际 IP。
Try :
尝试 :
ssh://[email protected]/pathto ->/...
Instead of :
代替 :
ssh://[email protected]/pathto ->/...
回答by Andrew
First make sure you have loaded your private keys into Pageant, and then try again.
首先确保您已将您的私钥加载到 Pageant 中,然后再试一次。
If still have trouble, try to use PuTTY to SSH into the git server hosting the repo. You might receive actually useful errors. Resolve those errors then try again to clone the repository via SourceTree. (Thanks for the comment Jake)
如果仍然有问题,请尝试使用 PuTTY 通过 SSH 连接到托管 repo 的 git 服务器。您可能会收到实际有用的错误。解决这些错误,然后再次尝试通过 SourceTree 克隆存储库。(感谢Hyman的评论)