6
如何用另一个仓库替换git子模块?
如何将git子模块替换为其他git repo? 具体来说,我有一个子模块: 位于./ExternalFrameworks/TestFramework那个指向git repogit@github.com:userA/TestFramework.git 我现在想指出git@github.com:userB/TestFramework.git。 问题是,当我使用此处描述的方法删除子模块时,然后使用命令将其重新添加 git submodule add git@github.com:userB/TestFramework.git 我收到此错误: A git directory for 'ExternalFrameworks/TestFramework' is found locally with remote(s): origin git@github.com:userA/TestFramework.git If you want to reuse this local git directory instead of cloning again from git@github.com:userB/TestFramework.git use the '--force' option. If the local git directory is not …