git add another repo as submodule code example Example: git clone submodule git clone --recurse-submodules