Skip to content
BENIBIX Learn

Monorepo

Development🔀 Version ControlGit Basics

Also known as Monorepository, Mono Repo, Single Repository

One repo that holds the code for many projects. They all share one history.

Think of it like

Think of it like one big toy box for the whole family. All the toys go in it.

Example

Jack's team keeps its web app, its phone app and a shared folder in one monorepo. A fix to the shared login code reaches both apps in one pull request.

Why it matters

Changes that touch many projects land together, so nothing gets out of step.

Definition

A monorepo is one repository that holds the code of many projects. A web app, a phone app and their shared code can all live in it, in separate folders. One change can update every project at once. Everyone sees the same history and the same tools. The cost is size: big monorepos need tools that build and test only what changed.
On the left, one repo with many folders. On the right, many small repos.

Common mistake

Thinking a monorepo means one big app. The projects inside can still be built and run on their own.

Key takeaways

  1. 1
    One repository. Many projects share one history.
  2. 2
    One change, many projects. A fix can reach them all.
  3. 3
    Needs smart tools. Build and test only what changed.

Compare

Learn it properly