Is there a way to use git clone --recursive to clone a project including all of it's submodules, except one (manually specified) submodule? Thank you!
git clone --recurse-submodules takes an optional pathspec. This pathspec can be negative (e.g., !*.c) to match all files but a particular path. See gitglossary(7) for the form of pathspecs. You may need to specify --recurse-submodules=. and the add an additional negative pathspec version as well.
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