Git --recursive does not clone submodule

I found out that to load submodules with the main repository we can use the option --recursivewhen cloning the main repository.

I did the same git clone --recursive git@github.com:passion/academy.git

I found that it creates an empty submodule directory, but does not load its code.

Do I need to do extra things, for example git submodule update --init --recursive? If so, what is the use of the flag --recursivewhen cloning the main repository?

+4
source share
1 answer

If you use a fairly recent git and it still does not clone submodules, this means that these empty folders are not submodules, but nested git repo .

gitlink, .gitmodules.

health-check git, , No submodule mapping found in .gitmodules for path for health-check.. git .gitmodules?

, git , .

, , .gitmodules health-check hellospawn (, , ) .

+3

Source: https://habr.com/ru/post/1621200/


All Articles