From the course: Git Dependency Management with Submodules and Subtrees

Unlock the full course today

Join today to access over 24,600 courses taught by industry experts.

Introduction to Git submodules

Introduction to Git submodules

- Let's move on to the first tool that is Git submodules. In this video, I'll be giving you a quick introduction to Git submodules. Git submodules help you nest Git repositories within other Git repositories, can easily detect the presence of GIS submodules in a repository by the presence of the dot Git modules config file. I'll be showing how Git submodules look like on GitHub in a bit. Another feature you must remember while learning Git submodules is that it points to a specific commit reference of the child repository. As mentioned earlier, it overcomes the disadvantage we discussed before. It can build and test from bleeding-edge checkouts. Git submodules follow a component-based development model. We can choose to update a specific submodule according to your requirement or one at a time.

Contents