Submodules and Subtrees

Sooner or later two projects need the same code. Git 1,932 offers two ways to include one repository inside another: a submodule records a pointer to a commit of the other repository, and a subtree copies its files in.

Subsections