Search code examples
gitversion-controlgit-submodules

How do I checkout all submodules and sub-submodules?


We have a git repository, with submodules. Inside one of the submodules is another submodule.

When we download the repository with git --recurse-submodules, it doesnt checkout the sub-submodules.

How do you achieve this?

Thanks


Solution

  • Run this command and it will recursively clone all submodules and nested submodules. git submodule update --init --recursive