I have the following problem. I am managing a main Git repository, and we are starting to add sub-projects/libraries as git submodules. Some of those submodules are public, and anyone is allowed to pull/clone. But other submodules require to be authorised for pulling.
How can I do so that the people that have no rights to clone/pull a particular submodule can clone/pull the full project with the public submodules or other submodules s/he might have access to?
git clone --single-branch --branch master git.ssh.address/project.git --recurse-submodules
I need to provide users with a simple one-line command that allows them to clone my repo with all the submodules they have the access to, preventing errors from submodules where they do not have access.
I would expect a kind of --ignore-errors
?