问题:
I'm trying to put a submodule into a repo. 我正在尝试将子模块放入存储库中。 The problem is that when I clone the parent repo, the submodule folder is entirely empty. 问题是当我克隆父仓库时,子模块文件夹完全为空。
Is there any way to make it so that git clone parent_repo
actually puts data in the submodule folder? 有什么方法可以使git clone parent_repo
实际上将数据放入子模块文件夹中吗?
For example, http://github.com/cwolves/sequelize/tree/master/lib/ , nodejs-mysql-native
is pointing at an external git submodule, but when I checkout the sequelize
project, that folder is empty. 例如, http : nodejs-mysql-native
指向外部git子模块,但是当我检出sequelize
项目时,该文件夹为空。
解决方案:
参考一: https://stackoom.com/question/Fvkl/如何-git-clone-包括子模块参考二: https://oldbug.net/q/Fvkl/How-to-git-clone-including-submodules
来源:oschina
链接:https://my.oschina.net/u/4438370/blog/4299881