what if I fetch and pull from
Repo A
? Will the separate module being pulled together at once?
No: each repo is independent.
I would recommend three additional repos, for referencing the right submodules.
RepoX
forClient X
: references one submoduleA
RepoY
forClient Y
: references two submodulesA
andB
RepoX
forClient Z
: references two submodulesB
andC
The idea (with submodules) to record the exact SHA1 of each product you need for a given client.
that way, if you pull one Product
repo:
- it doesn't have any influence on the other
Product
repos - you go back one level up in the parent repo (a
Client
repo), add and commit the new state of your submodule, recording the change you made in said submodule.