Git - SubProject


How to integrate subproject into a main project. (ie code dependency)



sub-module creates a link to a repository (no file, no commit, no history is saved within the main project repository)


sub-tree integrates a subprojects repository within a subdirectory, optionally including the subproject’s entire history into the main project

Usage: Include the source code of a library as a subdirectory of your application.

Unlike submodules, subtrees do not:

  • need any special constructions (like .gitmodules files or gitlinks) be present in your repository,
  • force end-users of your repository to do anything special or to understand how subtrees work.

Discover More
Death Stars Architecture Diagram
Code Shipping - Dependency (Coupling)

in code. A (module|package|library) often requires other (packages|module) to be installed to function correctly. Such a relation is called a dependency. Coupling or dependency is the degree to which...
What is the Git Repository (Directory) ?

This page is the notion of repository and how it's implemented in Git. The git repository is a subdirectory named .git called also GIT_DIR that contains all repository files. It contains : commit...

Share this page:
Follow us:
Task Runner