tmn
tmn

Reputation: 11559

Eclipse EGIT not showing project I just cloned in package explorer?

I just cloned a repository in Eclipse. However, it is not showing up in the package explorer. How do I get it there? I see the branches and everything in repository view... but I cannot edit the contents.

Upvotes: 7

Views: 24624

Answers (4)

Vishwas
Vishwas

Reputation: 1

To open the Package Explorer in Eclipse:

  • Go to Windows -> Show View -> Package Explorer
  • To add a repository to Package Explorer, right click on any existing repository/ package/projects in the explorer
  • Right click anywhere in Package Explorer area -> 'Import...' -> Git -> 'Projects from Git' -> 'Existing local repository' -> Choose the git repository -> Finish

Upvotes: 0

Makuna
Makuna

Reputation: 598

If Git is located locally:

Right-Click in Project Explorer->"Import..." choose Git->"Projects from Git". Press Next and then "Existing local repository". Select the git repository, it will be imported in the Project Explorer

Upvotes: 0

Nisarg Patil
Nisarg Patil

Reputation: 1649

In package explorer view -> Right click -> Team -> Share Project. This should show the branch name in package explorer as well.

Upvotes: 0

nitind
nitind

Reputation: 20033

Right-click on the Working Directory in the Git Repositories view and Import the projects into the Eclipse workspace. They will not be copied. Clones can contain more than one project--wouldn't want to automatically import all of them (plus some of them might be one-off test projects buried in the tree somewhere).

Upvotes: 13

Related Questions