Oft-used, never understood.
References
- Git SCM
man git-submodule
Add a Submodule
git submodule add <URL>
This creates a .gitmodules file that shows the mapping between your project and its submodules.
Clone with Submodules
- clone your project as normal
git submodule initto initialize from.gitmodulesgit submodule updateto fetch data from the commit referenced at the other end of the.gitmodulesrepo URL
