Hi!
First of all, I would like to thank you, Yii guys, for Yii.
I’m newbie to Yii and Git and trying to figure out the best practice for a project consisting of multiple extensions / modules hosted on remote git / svn repos.
What I want to achieve is one Git repo that includes all the base code & ext & submodules either from remote Git or SVN with ability to push it to our main git repo, share it with other devs and update/sync all remote repos.
The solution should be supported by Eclipse end eGit but since eGit doesn’t support submodules, I believe we will have to use some other git client or cmd line.
Currently I have two ideas to solve my problem:
using git submodules: put all remote repositories under main Git tree (ie: under /protected/extensions/… or even in separate dir like /protected/git/…).
all code will be in one place and easily shareable / updatable among devs. Use of cmd line or some other, more capable git client than eGit is a must.
by putting all remote repos out of the main Git tree, track them with eGit/SVN and symlinking needed parts to main git tree. The disadvantage in this approach is (as I see it) a need of multiple repositories that are hard to share between devs.
Well, maybe all my proposed solutions are completely wrong and I should take completely different approach. As I said, I have almost no experience with git.
So please, share your experience with yii, git, svn, eclipse & other editors & IDEs, remote repos, multiple repos, submodules, … anything that could ease the management of new (or old) project.
Many years I spent with TYPO3 (it’s CMS, not a framework) and I just can’t wait to start coding with Yii.
Thanks,
Tomi