layman/terms
Git words

Repository

ri · poz · i · tree

In shortA repository is the folder that holds a project's files plus the full history of every change ever made to them.

Developers keep saying "it's in the repo". The repo is simply where the project lives, along with everything that ever happened to it.

Picture a filing cabinet for one project. Every page of the project is in there. But this cabinet is special: whenever someone changes a page, the old version is filed away too, with a note saying who changed it, when and why.

A repository, or repo for short, is that cabinet: the project’s files plus the whole history of how they got to where they are.

What’s inside

Where it lives

A repository can sit on your own computer, online on a site like GitHub or both. Teams usually keep one shared copy online and each person works on their own copy, swapping changes back and forth.

What it isn’t

It isn’t just a folder. A plain folder only knows what the files look like right now. A repository remembers every earlier version, so you can go back to how things were last Tuesday.

It also isn’t the same as GitHub. GitHub is one popular place to keep repositories online, like a storage building full of cabinets.

Where the comparison breaks down

A real filing cabinet fills up. A repository stores changes so cleverly that years of history often take up less room than you’d expect.

How the words fit together

Git is the tool that keeps the history. A commit is one saved change in the cabinet. Cloning makes your own full copy of a repository. GitHub is where many of them are kept online.

Good to know

"Repo" is just short for repository. When someone shares a GitHub link to their code, they are almost always sharing a repository.

When you'll hear it

“It's in the repo.” The file is stored with the rest of the project, so you can find it there.

“Can you give me access to the repo?” Please let me see the project's files and history.

“Let's start a new repo for this.” This project gets its own filing cabinet, separate from the others.

Say it in a meeting

“Which repository does the code for the new website live in?”