I'm not sure my title is at all descriptive, so let me tell you the problem and even if you cannot solve it, maybe you can suggest a better title.
I have two programming teams. The in-house team has access to all the source code, of course, but the outsourced team is supposed to have access to everything, except one directory way down in the tree. There's proprietary stuff in there and those guys should not be able to see it, let alone change it. Ideally, they won't even be aware of its existence.
Maybe I should have two remote repositories, one with the common files and one with the proprietary stuff, but in that case, how do the developers created a mixed repository, where the root of one branch tracks from one remote and a directory deeper down tracks from another?
I can't believe I'd be the first person with the problem but I cannot even think of a way to phrase it for a good Google search.
I suggest you to split your project into 2 different repositories and link them using a submodule.
This way you can just have a different set of permissions for each repository.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With