We have a git repo that is serving multiple projects/targets. In addition there are 3 submodules for separately developed modules that are referenced and pulled into the workspace.
Are are going to have a 4th repo for a module that will be needed only for a specific project and only specific engineers have permissions to access it. Is there any way to make this 4th submodule optional or it's all-or-nothing?
Thanks a lot,
Guy.
You can use something like following in your .gitmodules
:
[submodule "secrets"]
path = secrets
url = ./secrets
Then, after checkout, you can clone the optional repositories like:
rm -rf secrets
git clone git://... secrets
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