1

I initializing git repository in the eclispe workspace and added remote repositories from Github. I did a git fetch and then checkout out a branch from the remote from within eclipse git view. The projects that were visible in the project explorer and package explorer and no longer visible now. Tried to import them using from file->import menu but I see a message Some projects cannot be imported because they already exist in the workspace

I'm using Eclipse Mars.2 (4.5.2) version. I noticed the same behavior with STS (3.7.2) also. Is there a way I can get back the projects shown in eclipse again?

vijayanand
  • 238
  • 2
  • 12

1 Answers1

1

Some projects cannot be imported because they already exist in the workspace

That is not related to git, and more related to how Eclipse is managing its workspace: it cannot accept two eclipse projects with the same name.

Try switching to a brand new workspace, and re-import your Eclipse project there.

If that eclipse project is in a local git repo, share it with Git and Eclipse will detect that existing git repo.

https://wiki.eclipse.org/images/1/1d/02-TeamShareProject.png https://wiki.eclipse.org/images/8/88/03-SelectRepositoryTypeGit.png

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250