git clone --recorsive code example
Example 1: git clone recursive
# When cloning repo ...
git clone --recurse-submodules -j8 https://git.example.com/repo.git
# ... or for existing already cloned repo
git submodule update --init --recursive
Example 2: Fetch submodules recursively
#! Fetch and update submodules into an existing project
git submodule update --init --recursive