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?
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
2009-10-08 22:55:52
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
2009-10-09 18:17:21
+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
2009-10-08 22:46:12
+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
2009-10-09 01:48:03