使用 Eclipse 克隆 git 存储库失败
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18745751/
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 git repository failed using eclipse
提问by My God
Trying to pull the fresh code from bitbucket and I am continuously getting read time out error.
试图从 bitbucket 中提取新代码,但我不断收到读取超时错误。
A popup comes that just says:
一个弹出窗口只是说:
Git repository clone failed.
Read timed out.
Clicking on Show Error Logsays-
单击显示错误日志说-
Plug-in: org.eclipse.egit.ui
Date: current time of failure
插件:org.eclipse.egit.ui
日期:当前故障时间
回答by My God
This is the way figured out correctly,
正确的方法是这样的
Going to- Window -> Preferences -> Team -> Git
要去——Window -> Preferences -> Team -> Git
And set Remote Connection timeout(seconds)
to some higher value.
并设置Remote Connection timeout(seconds)
为更高的值。
The default is set to 30 seconds.
默认设置为 30 秒。
When set to 180 seconds and tried to pull, it worked.
当设置为 180 秒并尝试拉动时,它起作用了。
回答by functionpointer
Egit wasn't able to read the remote repository. It got a timeout.
Egit 无法读取远程存储库。它超时了。
Make sure that you have proper access to the repo. Check your network connectivity, check ssh keys and/or passwords, check permissions. Does it work on another pc?
确保您可以正确访问 repo。检查您的网络连接,检查 ssh 密钥和/或密码,检查权限。它在另一台电脑上工作吗?