clone with all submodules code example
Example 1: git clone submodule
git clone --recurse-submodules
Example 2: Fetch submodules recursively
#! Fetch and update submodules into an existing project
git submodule update --init --recursive
git clone --recurse-submodules
#! Fetch and update submodules into an existing project
git submodule update --init --recursive