add a repo as a sub repo github code example Example: git clone submodule git clone --recurse-submodules