Reputation: 351
I've forked and cloned a project to the local machine from GitHub using the terminal and am trying to import it into Eclipse.
The problem is the clone from GitHub doesn't have a .project
file, so when I go import -> projects from Git, I can only import as a general project. How can I import the project to Eclipse without doing git init? Most of the solutions I saw have .project
already there when they cloned it from Git.
Upvotes: 34
Views: 57595
Reputation: 26557
After a while I got it working as expected...
Basically the wizard is broken. This is what worked for me (eclipse 4.2.2):
I've imported a general project (it was SQL code only) and this time it worked as expected (The screen doesn't allow you to change the project name nor directory, which makes sense at this point.)
Those are the same steps performed by the wizard, but apparently it doesn't get the information about the project being already deployed at the workspace, so you get the option to change those values and it complains about the project already existing there.
Upvotes: 9
Reputation: 5015
Create a new java project, Untick "Use default location" and browse the git project path by clicking browse button. It works for me. I have just imported a Git, netbeans project into Eclipse through this simple method.
Upvotes: 45
Reputation: 6322
Do this:
File > Import > General > Existing Projects Into Workspace
then:
Upvotes: -1
Reputation: 6322
I use eclipse 3.7 ( indigo ) and I find this great solution:
1) click on: Navigate -> Show In -> Project Explorer
2) from Filesystem folder, find and select the folder where the project is contained
3) right chick on folder, and select Promote to Project
Upvotes: 0
Reputation: 18552
You should create a new project in Eclipse and specify that the project be located in the existing directory.
Choose "Create project from existing source" in the wizard:
Upvotes: 2