How do I replace a git submodule with a different git repo?
Specifically, I have a submodule:
./ExternalFrameworks/TestFramework
What fixed this for me was in the root of your git repo (not the submodule), run
rm -rf .git/modules/yourmodule
Then you should be able to add as normal.