Git拒绝在其他子模块中创建/使用目录';s方向

Git拒绝在其他子模块中创建/使用目录';s方向,git,github,Git,Github,我试图使用git submodule update--recursive--remote--init递归地更新git子模块。模块结构为: A B 船长 C/后端 C/前端 C中使用的所有分支都是孤立的,代码完全分离 所有回购协议都是私人的,但我是所有者 这是我每次都能得到的信息。(尝试同步,使用git://,先更新而不递归) 无法克隆“C/master”。重试计划 错误:子模块git dir'F:/Docs/A/.git/modules/B/modules/C/backend'位

我试图使用
git submodule update--recursive--remote--init
递归地更新git子模块。模块结构为:

  • A
    • B
      • 船长
      • C/后端
      • C/前端
C中使用的所有分支都是孤立的,代码完全分离

所有回购协议都是私人的,但我是所有者

这是我每次都能得到的信息。(尝试同步,使用git://,先更新而不递归)

无法克隆“C/master”。重试计划

错误:子模块git dir'F:/Docs/A/.git/modules/B/modules/C/backend'位于git dir'F:/Docs/A/.git/modules/B/modules/C'内

致命:拒绝在另一个子模块的git目录中创建/使用“F:/Docs/A/.git/modules/B/modules/C/backend”


有没有办法解决这个问题?

由于存储库名称和路径名称不同,git add通过路径名而不是目录名来命名子模块,并在repo B中更改子模块的名称。git Modules修复了这个问题

先前:

[submodule "Folder/master"]
    path = Folder/master
    url = https://github.com/tomkys144/C
    branch = master
[submodule "Folder/backend"]
    path = "Folder/backend
    url = https://github.com/tomkys144/C
    branch = backend
[submodule "Folder/frontend"]
    path = Folder/frontend
    url = https://github.com/tomkys144/C
    branch = frontend
固定的:

[submodule "C/master"]
    path = Folder/master
    url = https://github.com/tomkys144/C
    branch = master
[submodule "C/backend"]
    path = "Folder/backend
    url = https://github.com/tomkys144/C
    branch = backend
[submodule "C/frontend"]
    path = Folder/frontend
    url = https://github.com/tomkys144/C
    branch = frontend

由于存储库名称和路径名称不同,git add通过路径名称而不是目录名称来命名子模块,并在repo B的.gitmodules中更改子模块的名称修复了此问题

先前:

[submodule "Folder/master"]
    path = Folder/master
    url = https://github.com/tomkys144/C
    branch = master
[submodule "Folder/backend"]
    path = "Folder/backend
    url = https://github.com/tomkys144/C
    branch = backend
[submodule "Folder/frontend"]
    path = Folder/frontend
    url = https://github.com/tomkys144/C
    branch = frontend
固定的:

[submodule "C/master"]
    path = Folder/master
    url = https://github.com/tomkys144/C
    branch = master
[submodule "C/backend"]
    path = "Folder/backend
    url = https://github.com/tomkys144/C
    branch = backend
[submodule "C/frontend"]
    path = Folder/frontend
    url = https://github.com/tomkys144/C
    branch = frontend