Unable to use egit to clone a repository with ssh

本秂侑毒 提交于 2019-12-11 07:55:04

问题


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.

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.


回答1:


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

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.



来源:https://stackoverflow.com/questions/9506880/unable-to-use-egit-to-clone-a-repository-with-ssh

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!