admin 管理员组

文章数量: 1086019

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?

Share Improve this question asked Mar 30 at 8:30 einpoklumeinpoklum 133k80 gold badges420 silver badges862 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 3

Nope, 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

本文标签: configurationCan I make git clone recurse submodules by defaultStack Overflow