我对 Git 还很陌生,尽我所能找到一些关于这个问题的文档,但无济于事。
这是我的命令:
$ git submodule add https://github.com/joliver/EventStore.git externalsource/JOliverEventStore/
致命:不是 git 存储库:../.git/modules/externalsource/JOliverEventStore 无法签出子模块“externalsource/JOliverEventStore”
我在我的 repo 的根目录中,目前没有/externalsource/JO
liverEventStore/
. 错误是在谈论我不知道的目录。
如果我像这样将子模块添加到根目录:
$ git submodule add https://github.com/joliver/EventStore.git JOliverEventStore
我没有问题,它会在根目录中创建文件夹。
任何见解将不胜感激。