Although I’ve used CM tools before, I’m new to GitLab. I have a use case I’m trying to implement but could use some help. Let’s say we have two halves of a code base. Repository 1 holds files A and C. Repository 2 holds files B and D. We have another repository 3 which holds different files B and D. The idea is that repositories 2 and 3 are modular and either-or can be added to a working project directory. Now, when a project needs to save to repositories, we can push from the same project directory back to repositories 1 and 2 (or 3). As a special note, the file listings are mutually exclusive among complementary repositories, meaning that no files in repository 1 are in repository 2 and vice versa.
I did get as far as being able to rename the .git directory using “git init --separate-git-dir” which can allow more than one clone in a directory by using “git --git-dir=/opt/myproject.git”. However if I try actually clone more than one repository into a project directory I get the “directory not empty” error. Is there a way to bend GitLab to do what I want with too much chicanery, or am I thinking about the whole scheme incorrectly?