how to git submodule update when folder is empty, init submodules git submodule update --init --remote after folder is not empty, update submodules git submodule update --remote --recursive