From Surf Wiki (app.surf) — the open knowledge base
Repository (version control)
Metadata storage for software revision control
Metadata storage for software revision control
In version control systems, a repository is a data structure that stores metadata for a set of files or directory structure. Depending on whether the version control system in use is distributed, like Git or Mercurial, or centralized, like Subversion, CVS, or Perforce, the whole set of information in the repository may be duplicated on every user's system or may be maintained on a single server.{{cite web |access-date=2020-07-10 |url-status=live |archive-url=https://web.archive.org/web/20200427074258/https://homes.cs.washington.edu/~mernst/advice/version-control.html |archive-date=2020-04-27
The main purpose of a repository is to store a set of files, as well as the history of changes made to those files. Exactly how each version control system handles storing those changes, however, differs greatly. For instance, Subversion in the past relied on a database instance but has since moved to storing its changes directly on the filesystem. These differences in storage techniques have generally led to diverse uses of version control by different groups, depending on their needs.
Overview
In software engineering, a version control system is used to keep track of versions of a set of files, usually to allow multiple developers to collaborate on a project. The repository keeps track of the files in the project, which is represented as a graph.
A distributed version control system is made up of central and branch repositories. A central repository exists on the server. To make changes to it, a developer first works on a branch repository, and proceeds to commit the change to the former.
Forges
A code forge is a web interface to a version control system. A user can commonly browse repositories and their constituent files on the page itself.
Static web hosting
While forges are mainly used to perform version control operations, some forges allow users to host static web pages by uploading its source code (such as HTML and JavaScript, but not PHP) to a repository. This is usually done in order to provide documentation or a landing page for a software project.
The use of repositories as a place to upload web documents allows version control to be integrated, and additionally allows quick iteration because changes are pushed through the Version Control System instead of having to upload the file through a protocol like FTP.
Examples of this kind of service include Codeberg Pages, GitHub Pages and GitLab Pages.
References
References
- "SVNBook".
- "Getting Started - About Version Control". Git SCM.
- (2011). "Version Control with Subversion: For Subversion 1.7". O'Reilly.
- "Different approaches to source control branching".
- "GitHub Pages {{!".
This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page.
Ask Mako anything about Repository (version control) — get instant answers, deeper analysis, and related topics.
Research with MakoFree with your Surf account
Create a free account to save articles, ask Mako questions, and organize your research.
Sign up freeThis content may have been generated or modified by AI. CloudSurf Software LLC is not responsible for the accuracy, completeness, or reliability of AI-generated content. Always verify important information from primary sources.
Report