clone recurse submodules code example
Example 1: git clone --recurse-submodules
git clone --recurse-submodules git://github.com/foo/bar.git
Example 2: Fetch submodules recursively
#! Fetch and update submodules into an existing project
git submodule update --init --recursive