Repository
Repository
A place where a program's files and its development history are stored together.
In Simple Terms
A repository is a place where a program's files and its complete history of changes are stored together. When a team builds an app together, everyone saves their work to the same repository. Because it keeps a record of who changed what and when, it's easy to roll back to an earlier version or merge everyone's changes together.
Behind the Name
The word "repository" itself means a container, storehouse, or warehouse. In the world of software, it's used to describe a kind of digital warehouse that safely holds program data along with the full history of changes made to it over time - which is exactly where this name comes from.
Take a Closer Look!
A repository is a place where a program's source code and related files, like design documents, are all managed and stored in one central spot. It's often hosted online or on a dedicated server, gathering together every file needed for development.
One of the most important features of a repository is that it doesn't just hold the latest version of your files - it also keeps a complete record of every past change. That means if a bug shows up in the program, you can easily roll back to an earlier version that was working fine. It also has built-in tools for organizing and merging changes when multiple people edit the same file, and for clearly flagging it whenever changes to the same part end up conflicting with each other.
Broadly speaking, there are two types: a "local repository," which lives only on your own computer, and a "remote repository," which is hosted online and shared with everyone on the team. The usual workflow is to write code on your own machine, then, once you've reached a good stopping point, push your changes up to the shared online space so they can be merged with everyone else's work. This is why repositories are such a core part of how teams collaborate on software development.