Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Target location for project " " already exists, can not move project

when I am trying to share my project with git repository getting exception like this

"Target location for project " " already exists, can not move project"

enter image description here

like image 656
Shailendra Madda Avatar asked Dec 15 '22 14:12

Shailendra Madda


1 Answers

Writing an answer because I tried many options suggested in many similar questions but none worked. Then I did it manually with following steps that worked, and these steps will work for any Eclipse version:

  1. Goto the Eclipse workspace in the file system and copy the project from there and paste it in some other location in your file system. This will serve as a backup.

  2. Goto your Eclipse and then right click on the project and click delete. You can say delete from the file system because you've already taken a backup in step1.

  3. Goto your Git repo in the file system and paste the project folder at the location you want (may be inside another folder with .project file doesn't matter).

  4. Then come back to your Eclipse and then File->Import -> Import from Git -> Local repo -> Select the Git local repo where you've pasted the project in step 3 and then import it as usual.

As I said earlier, this will work for any Eclipse version.

like image 94
Saurabh Patil Avatar answered Apr 19 '23 23:04

Saurabh Patil