Jean-Pierre Schnyder
Jean-Pierre Schnyder

Reputation: 1944

How to setup EGit in an Eclipse Joomla development project to work on a third party module hosted on GitHub?

I am new to Git/GitHub. I do have an Eclipse Indigo Joomla 2.5 workspace on an freshly installed Joomla instance. I can launch an http request, set a breakpoint somewhere in the Joomla code and start stepping into the code in a debug session. So, working environment !

I would like to contribute to a third party Joomla module hosted on GitHub. How can I clone the code of the module from the GitHub repo and start making improvements to it. I also plan to work on other third party modules or plugins later, from the same workspace if this is possible.

My concern is: how do I setup EGit so that I can have several independant local Git repo in the same workspace and add, branch, merge, push on them independantly ? Thanks for your answer !

Jean-Pierre

Upvotes: 2

Views: 239

Answers (1)

VonC
VonC

Reputation: 1328172

How can I clone the code of the module from the GitHub repo and start making improvements to it

You need to fork it first, and then make some pull requests.

You can add each of those repos in your Eclipse workspace (see adding a repository manually).
However, you would need to manage branches and pushing for each and every repos.

I would also advise to add for each repo the remote address of the original upstream repo:

upstream repo

That way, you can easily rebase your work on top of the latest of the original repo you have forked.

Upvotes: 2

Related Questions