AFAIK Git has two ways to clone a repository with respect to submodules:
*(1)* Plain clone of just the repository itself:
git clone git://github.com/foo/bar.git
*(2)* Recursive clone of the repository including all its submodules:
git clone --recursive git://github.com/foo/bar.git
I am working on a big cross platform project and on certain platforms I
don't need certain submodules. AFAIK there is no way to selectively clone
only a subset of the submodules with the standard command line interface. I
wonder if something like an exclude pattern for submodules would be of
general interest. I imagine a call like this after a plain "clone"
git submodule update --init --recursive --exclude 3rdParty/Windows/*
git clone --recursive --exclude 3rdParty/Windows/* git://github.com/foo/bar.git
Please let me know what you think.
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email
For more options, visit https://groups.google.com/d/optout.