# Repository

> A project folder. It also keeps a full record of each change ever made.

**Field:** Software Development  
**Category:** Version Control  
**Also known as:** Repo, Git Repository

## Think of it like

Think of it like a box for a project. It also holds a diary of each change.

## Definition

A repository, or repo, is a project folder that Git is tracking. It holds the project's files plus a hidden folder named .git with the full history. Each person on a team has their own copy of the repo. There is often also a shared copy online, on a site like GitHub or GitLab. You create one with git init or copy one with git clone.

## Example

Emma runs git init in her shop folder. The folder is now a repository, and Git starts keeping track of it.

## Example code

```console
$ git init shop
Initialized empty Git repository in /home/ada/shop/.git/
```

One command turns a plain folder into a repo.

## Why it matters

The repo is the home of a project. Everything Git does happens inside one.

## Common mistake

Deleting the hidden .git folder. That wipes out all the past and leaves just the files.

## Three principles

- **Files plus history.** The past lives in the .git folder.
- **Many copies.** Each person has a full repo.
- **Start or copy.** Use git init or git clone.

## Related terms

- [Git](https://learn.benibix.com/term/development/git)
- [Commit](https://learn.benibix.com/term/development/commit)
- [Git Clone](https://learn.benibix.com/term/development/clone)
- [Remote Repository](https://learn.benibix.com/term/development/remote)
- [Monorepo](https://learn.benibix.com/term/development/monorepo)
- [Codebase](https://learn.benibix.com/term/development/codebase)

## Taught in

- [Version Control and Git](https://learn.benibix.com/learn/development-version-control/version-control-and-git): Git and GitHub, 1/13

---

Source: https://learn.benibix.com/term/development/repository
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
