git submodule deinit --all --force git clean -dfx git checkout newbranch git submodule update --init --recursive