Git submodule 知识总结

黄琦雲 at 
概念先引用 git 的官方定义描述:A submodule is a repository embedded inside another repository. The submodule has its own history; the repository it is embedded in is called a superproject.子模块(submodule)是一个内嵌在其他 git 仓库(父工程)中的 git 仓库,子模块有自己的 git 记录。通常,如果一个仓库存在子模块,父工程目录下的 .git/modules/ 目录中会存在一个 git 目录,子模块的仓库目录会存在于父……