最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

configuration - Can I make git clone recurse submodules by default? - Stack Overflow

programmeradmin0浏览0评论

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
发布评论

评论列表(0)

  1. 暂无评论