I'm not sure how to do that with Git:
(Module
are files or folders)
MyCoreRepo:
Module1
Module2
Module3
Module4
MyCompositeRepo1:
Module2
Module3
MyCompositeRepo2
Module1
Module4
The goal is being able to pick some modules (a kind of composition). MyCompositeRepo1 is picking Module2
and Module3
then some specific code is added and it stays at MyCompositeRepo1
level (not shared with MyCoreRepo
).
If I add new functions in Module2
or Module3
in MyCoreRepo
, MyCompositeRepo1
should be able to pull it(update its Module2
and Module3
) without destroying the specific code that has been added meanwhile.