HomeToolsAbout a20k

Monorepo vs Submodule

Monorepo vs Submodule

Takeaway

When there are multiple projects that need separate history and tracking, it makes most sense to have them as a separate repository

If you have any tight coupling or shared elements across the repository, you're best off using a monorepo

Source

Monorepo

Pros

Cons

SubModule

Pros

Cons

  • With submodules, updating multiple repositories and then updating a parent repository with new pointers is just inconvenient
  • We used submodules for a while and they didn't work too well for us because we have a number of tightly coupled components and changes are frequently applied to multiple repositories at once.
© VincentVanKoh