How do I replace a git submodule with a different git repo?
Specifically, I have a submodule:
./ExternalFrameworks/TestFramework
The easiest way that I found is this:
git rm -rf [submodule_dir] git submodule add --name new_[submodule_name] [new_submodule_url] [submodule_dir]
I didn't like the idea to modify my .gitmodules manually. I also wrote a little blogpost about it.
.gitmodules