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 init
to initialize from.gitmodules
git submodule update
to fetch data from the commit referenced at the other end of the.gitmodules
repo URL
Leave a Reply