无法使用egit与ssh克隆存储库 [英] Unable to use egit to clone a repository with ssh
问题描述
我尝试使用SSH使用EGit克隆GIT存储库。我可以登录到计算机,查看可用的分支,然后选择将所有内容放置在本地的位置。然后,当我继续进行克隆时,我得到一个Eclipse已发生问题框,其中指出:
从ssh:// [我的用户名] @ [我的地址]克隆遇到了问题。ssh:/ / [我的用户名] @ [我的地址]:密码:。问题的详细信息仅列出 ssh:// [我的用户名] @ [我的地址]:密码:两次。
I try to clone a GIT repository with EGit using SSH. I can log on to the machine, see the available branches and choose where to put everything locally. Then when I proceed to actually do the cloning, I get an Eclipse "Problem Occured" box stating: "Cloning from ssh://[my user name]@[my address] has encountered a problem. ssh://[my user name]@[my address]: Password:". The details for the problem only list "ssh://[my user name]@[my address]: Password:" twice.
我能想到的唯一可能原因的原因可能是在远程计算机上仅安装了Git 1.6.0.x,而我无权对其进行更新。
The only possible reason I can think of, might be that on the remote compute only Git 1.6.0.x is installed - and I don't have the rights to update it.
推荐答案
可以使用本地git克隆存储库吗?如果可以做到这一点,只需使用本机git克隆它,然后使用以下命令将项目导入eclipse:
Can you clone the repository using native git? If you can do that, just clone it using native git and then import the project into eclipse using:
File -> Import -> Projects from Git -> Local
如果Eclipse在Windows上运行,则需要一台linux机器(虚拟机可以),并且将存储库克隆到NTFS或Fat32格式的存储中。然后,您将能够将克隆的存储库复制到Windows计算机上的git文件夹中。
If your eclipse runs on Windows, you will need a linux machine (virtual machine will do) and clone the repo into a NTFS or Fat32 formatted storage. Then you will be able to copy the cloned repo into your git folder on the windows machine.
这篇关于无法使用egit与ssh克隆存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!