tags:

views:

295

answers:

3

I have several applications across sub domains on various servers Each application has its own git repository. Each application uses several shared files. Essentially, my repos overlap. How is this situation best handled with multiple editors of multiple projects?

+1  A: 

I would try making all the overlapping parts git submodules.

mckeed
After some research, it seems I can't edit the shared resource as a submodule. Ideally, we'd like to be able to edit the shared from the other projects they are included in, but maintain a central location. Is this still possible with submodules?
tb
People working on the any of the projects they are included in will be able to make changes to the submodules, but the changes have to be tracked separately. There is no way to push changes to a git repo and have it figure out that some of the changes should also be pushed to some other repo.
mckeed
+3  A: 

It sounds like you should partition the common elements so that there's a clear distinction, then use submodules. Make sure you clearly separate the common pieces, otherwise you'll likely end up with an unmaintainable mess.

Peter
+1  A: 

Why not use just simple symbolic links? That way you can just update one git repository and the other applications will be updated automatically.

ln -s sourcefolder destinationfolder

jimiyash