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

4

7

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.

Vondavonni answered 25/6, 2014 at 15:28 Comment(2)
Next time, try importing via File > Import > Projects from Git. This includes a step to import projects after cloning.Erythrism
U can try go through this Tutorial https://youtu.be/7Vy6sPkzwIgBeverly
H
13

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).

Horseplay answered 25/6, 2014 at 16:42 Comment(2)
It does not happen, even if I check "Import all existing Eclipse projects after clone finishes" while cloning. Any ideas how to solve that?Synergy
That requires there be .project files that were committed into the repository beforehand.Horseplay
E
0

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

Epicarp answered 16/3, 2018 at 15:43 Comment(1)
I think this answer is not related to the initial question since the author asked how to show them in the package explorer in general. However this is the answer to my problem (project available in package explorer with .git file included but not showing the repo information)Abscind
S
0

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

Squarely answered 23/7, 2019 at 8:31 Comment(0)
S
0

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
Superintendent answered 14/9, 2022 at 11:29 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.