Git Submodule: howto

Often it is extremely helpful to embed one git repository into another. An example that comes to mind is when you want to vendor dependencies for a project. This is where git submodule comes in. The submodule command clones one repo into a sub-directory controlled by another git repository. Git still controls version control over both repositories (master and embedded) and allows you to easily pin the embedded repository to a specific commit, version, or branch.

Continue reading

Author's picture

Derek Tracy

Full-stack engineer, architect, circuit bender, and hardware hacker

“Learning never exhausts the mind.”
― Leonardo da Vinci

Senior Platform Architect

USA