A repository (often shortened to "repo") is a directory or storage space where your project’s source code, configuration files, documentation, and version history are stored. It helps you track changes, collaborate with others, and manage your code over time.
🔁 Versioning: Tools like Git allow you to roll back changes, compare versions, and develop new features in separate branches.
🤝 Collaboration: Developers can work together, submit pull requests, open issues, and review each other’s code.
🌍 Remote repositories: Online platforms like GitHub, GitLab, or Bitbucket host repositories for teams to collaborate globally.
Example:
git clone https://github.com/username/my-project.git
A repository is a collection of software packages used by a package manager (like apt
, yum
, or pip
) to install or update programs.
Example:
sudo apt update
sudo apt install firefox
Outside of IT, a repository can be any kind of database or archive — for example, a digital library of research papers or datasets.