Skip to content

Repository

← All terms · Git fundamentals

Also called Repo, Codebase, Project

A centralized storage location where your project's files and their entire revision history are kept. It acts as the single source of truth for a project's codebase.

What it is

A repository is a data structure storing metadata for a set of files or a directory structure. It encompasses both the files currently being edited and the hidden .git directory tracking every historical change. Repositories can be local to a developer's machine or hosted on platforms like GitHub for collaboration.

When you would use it

You interact with a repository whenever you start a new software project or clone an existing one to begin contributing code.

Common operations

  • Cloning a remote repository to a local machine.
  • Initializing a new repository in an existing directory.
  • Archiving or migrating a codebase.

Related terms

Where this is taught

Going deeper