How do I replace a git submodule with another repo?

后端 未结 6 1356
野性不改
野性不改 2020-11-28 02:12

How do I replace a git submodule with a different git repo?

Specifically, I have a submodule:

  • located at ./ExternalFrameworks/TestFramework
6条回答
  •  青春惊慌失措
    2020-11-28 03:01

    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.

提交回复
热议问题