Git submodules

From Simson Garfinkel
Revision as of 07:51, 8 August 2020 by Simson (talk | contribs) (Created page with "Git submodules are complicated. Here is some recommended readings: Documentation: * https://git-scm.com/book/en/v2/Git-Tools-Submodules * https://www.atlassian.com/git/t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Git submodules are complicated. Here is some recommended readings:

Documentation:

Short article:

Longer Tutorial:

We use submodules for modularization. It's important to remember that a parent module pegs to a particular submodule commit point, not to a branch. The parent module does not automatically get the updates when the submodule is updated. This allows the authors of the submodule to do work without worry about breaking parents until the parents actually update their submodules. In this way, they work like versioned libraries.