I would like to have multiple files in a folder with are managed by different git repositories. Is it possible?
I have the following folder structure for a project. It is part of a Git repository:
plugins/
- plugin.a.php
- plugin.b.php
- plugin.c.php
I would like plugin.b.php
to be part of another repo. For example, I want the development of this plugin to be hosted on github. To use and develop concurrently on different projects.
When I use a git submodule for plugin.b.php
, I need an empty folder to init the submodule, so I have a structure of:
plugins/
- plugin.a.php
newfolder/
- plugin.b.php
- plugin.c.php
plugin.b.php
will not load as, for example, my App only loads files from the root of plugins/
. And, I don't want to have to modify the App.
Is there anyway to do this? I can think of lots of situations where I would like to use a similar workflow. Even having both plugin.b.php
and plugin.c.php
in different repos.
Thanks