Adding a submodule
suggest changeYou can include another Git repository as a folder within your project, tracked by Git:
$ git submodule add https://github.com/jquery/jquery.git
You should add and commit the new .gitmodules file; this tells Git which submodules to clone when git submodule update --init is run.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents