Can I configure git so that, when I git clone
a repository, it recursesively clones the submodules, without me explicitly having to say --recurse-submodules
?
Can I configure git so that, when I git clone
a repository, it recursesively clones the submodules, without me explicitly having to say --recurse-submodules
?
1 Answer
Reset to default 3Nope, not for clone
. See the docs for git config submodule.recurse
: clone
and ls-files
are not supported.
You can define an alias but should train yourself to use the alias instead of clone
:
git config alias.clonesub clone --recurse-submodules