After copying my GIT
repo from a PC computer onto my MAC, i can\'t seem to import it to an eclipse. Import happens via eGit plugin directly from existing local
Following is worked for me.
Copy/put your project outside of workspace [e.g : E:\yourproject ], then Go to
1. File-->Import-->General-->Existing Projects into Workspace
2. Browse your project
3. Select Checkbox "Copy projects into workspace"
and press Finish.
It will make copy of project into workspace.
This happens when cloning a remote git repository using import project -> project from git in the last step.
Hm I had similar problem with git repos (cloned from command line using git tool): Eclipse was damaging .git index inside project dir when I was importing projects cloned inside eclipse workspace. Than I cloned git repo outside workspace and imported in eclipse using "copy into workspace" checkbox and everything worked smoothly...
But it is worth to mention that I downloaded Eclipse Classic which comes without egit or without any git related plugins, because I had suspect that this egit plugin was resetting .git directory besides other import problems.
Maybe importing outside working dir is something what eclipse programmers want from us.
Please do check this out. I had a multi level project. I was not able to import one of my subprojects because it gave me "invalid project description, resource contains /". This was because my subprojects had apply plugin: 'eclipse' I think so. This is a known issue and there is a bug created for it: https://issuetracker.springsource.com/browse/STS-2614
Ok, i'll try to sum it up, after I faced similiary problems and wasted some time:
Eclipse Juno /4.2 SR1 (however I think it is a general misunderstanding of how ecplise imports projects)
The project import will fail because the projectname in the cloned ".project file" allready exists in the eclipse workspace dir when the import occurs.
Hope this saves some time.
You have ABC
already in your workspace. Remove it and then add this one.