Files
developer-roadmap/roadmaps/git-github/content/what-and-why-use@d0-u_-_vtPK8tnUpnj_NB.md
T

646 B

What and Why use?

Submodules let a project reference another Git repository at a specific commit, rather than copying its code directly into the main project. This is useful when multiple projects depend on the same shared library and need to track updates to it independently. Using a submodule keeps the dependency's history separate while still linking it to a fixed point in the parent project.

Visit the following resources to learn more: