项目的目标位置“ "已经存在,不能移动项目 [英] Target location for project " " already exists, can not move project

查看:947
本文介绍了项目的目标位置“ "已经存在,不能移动项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我的项目目标位置已经存在,无法移动项目


解决方案

撰写答案是因为我尝试了许多类似问题中提出的许多选项,但没有任何效果。然后我手动执行以下步骤:


  1. 转到文件系统中的Eclipse工作区,并从中复制项目并将其粘贴到文件系统中的其他位置。这将作为备份。


  2. 转到Eclipse,然后右键单击项目,然后单击删除。您可以从文件系统中删除,因为您已经在步骤1中进行了备份。


  3. 转到文件系统中的Git repo并粘贴项目文件夹在你想要的位置(可能在另一个文件夹中.project文件没关系)。


  4. 然后回到你的Eclipse,然后File-> Import - >从Git导入 - > Local repo - >选择Git本地的repo将项目粘贴在步骤3中,然后像往常一样导入。


这将适用于任何Eclipse版本。


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"

解决方案

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:

  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.

This will work for any Eclipse version.

这篇关于项目的目标位置“ "已经存在,不能移动项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆