how to git clone recursive a repository code example
Example: 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