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.
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).
In package explorer view -> Right click -> Team -> Share Project. This should show the branch name in package explorer as well.
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
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
© 2022 - 2024 — McMap. All rights reserved.