I have a git repository that contains more than one eclipse project. Its easy enough to import the eclipse projects, but I can't figure out how to get them to work with the eGit plug-in.
The tree output below shows the essentials of the directory structure I'm looking at.
bash-3.2$ tree -a
.
|-- .git
...
|-- .gitignore
|-- apps
| `-- example-app
| |-- .classpath
| |-- .project
...
|-- cs-build.xml
`-- services
`-- example-app-service
|-- .classpath
|-- .project
...
How can I work with these 2 projects AND have eclipse recognize that they are from the same git repository?
AHA! I have figured it out! The key is to Import the Project(s) in eclipse after you have the repository itself established somewhere on the disk. During the wizard, Eclipse find the Project(s) and links each of them up to the repository. In my example above, my Eclipse Package Explorer now shows
example-app [example-app master]
example-app-service [example-app master]
The clue that gave me hope was the tutorial here: http://www.vogella.com/articles/EGit/article.html#tutorial_multiprojects
The exact sequence of events was something like...
I'm off the command line and back in eclipse complete with feedback as to the status of the repo up through the remotes.
I'm still not so sure its a great idea to keep multiple eclipse projectes in a single repo, but this isn't my repo, its just where I have to work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With