I am trying to imitate svn: externals in git. In project "A" I need to pull out library "B" in a subfolder of "A". Both A and B are separate git repositories. I know that I can do this using submodules or merging a subtree. However, to complicate matters even more, I need to pull out the subfolder โBโ to โAโ, and not the entire project, because it is a python module that I need to import directly, and I cannot have the root directory structure there or it cannot be imported .
This is pretty easy to do with svn: externals. With git, this seems complicated or even impossible.
Here is an example:
Project B:
-B - src __init__.py - test ...
Project A:
- A - src A.py (imports B) - B (partial check of sub folder 'src' as name 'B') __init__.py - test ...
source share