git submodule clone repo with submodules git clone --recursive fetch submodules in existing repo git submodule update --init