如何将子模块代码添加到我当前的存储库中



我使用git submodule add将repo1添加到我当前的repo0中。

一个名为repo1的新目录已添加到我的repo0中。

但是我在这个目录中找不到任何代码。

如何将repo1中的所有代码下载到我的repo0?

有人能帮我吗?非常感谢!

首先尝试:

git config submodule.active .
git submodule update --init --remote

看看是否能得到更多的代码。

还要检查在git submodule add <url/remote/repo>之后创建的.gitmodules的内容。

最新更新