How do I replace a git submodule with a different git repo?
Specifically, I have a submodule:
./ExternalFrameworks/TestFramework
If you want to change the remote URL only for this clone:
git config submodule."$submodule_name".url "$new_url"
This won't affect the .gitmodules
file in the parent project, so it won't be propagated to other developers.
This is described as "user specific record changes" here.
Do not run git submodule sync
as that will reset to the default URL again.