Version Control System
What is a Version Control System?
A version control system (VCS) is software that stores the full change history of a set of files, recording who changed what and when, so teams can restore earlier versions and work in parallel. Git is the most common distributed example.
Updated November 2026 · 3 min read
A version control system (VCS) is software that records changes to files over time, so that people can see who changed what and when, return to earlier versions and work on the same files without overwriting each other's work. It is the foundation of modern software development: every change to a codebase is stored as a commit with a message, an author and a timestamp, and the full history can be searched, compared and restored.
Version control is mostly associated with source code, but the same idea applies to configuration, infrastructure definitions, documentation and data pipelines. Teams that keep these in version control can review changes before they take effect and roll back mistakes quickly.
Types of version control systems
| Type | How it works | Examples |
|---|---|---|
| Local | Versions kept on one computer | Early tools such as RCS |
| Centralized | One central server holds the history; developers check files out and commit back to it | Subversion (SVN), CVS, Perforce |
| Distributed | Every developer has a full copy of the repository and its history, and changes are shared between copies | Git, Mercurial |
Git, created by Linus Torvalds in 2005 to manage development of the Linux kernel, is now by far the most widely used system. Hosting platforms such as GitHub, GitLab, Bitbucket and Azure DevOps add pull requests, code review, issue tracking and CI/CD on top of Git repositories. Git is the version control system itself; GitHub and similar services host Git repositories, so the two names are not interchangeable. Centralized systems remain in use in some industries, such as game development, where very large binary files are common.
Key version control concepts
- Repository. The collection of files and their full history.
- Commit. A saved set of changes with a message describing why they were made.
- Branch. An independent line of development, used to work on a change without affecting the main line.
- Merge. Combining changes from one branch into another. When two branches change the same lines, a merge conflict must be resolved by hand.
- Pull request or merge request. A proposal to merge a branch, where teammates review the change and automated checks run.
- Tag. A named marker on a specific commit, often used for releases.
Branching strategies
Teams agree on how branches are used. In trunk-based development, developers merge small changes into the main branch at least daily, using feature flags to hide unfinished work. In feature-branch workflows, each change lives on a short-lived branch that is merged through a pull request. More elaborate models with separate develop, release and hotfix branches suit products with scheduled releases and several supported versions. Shorter-lived branches generally mean fewer and smaller merge conflicts.
Version control example
Consider a hypothetical team of eight developers who each work on a feature branch for two to three weeks before merging. Large merges cause an average of 14 merge conflicts a week, and the week before each release is spent resolving them. The team moves to short-lived branches merged within a day, with feature flags for unfinished work and automated tests on every pull request. Over the next two months conflicts fall to about 3 a week, and because each merge is small, most take minutes to resolve. When a change breaks checkout in production, the team identifies the commit from the history and reverts it in under 20 minutes. The figures are illustrative.
Best practices
- Commit small, related changes. One logical change per commit makes history readable and reverts safe.
- Write useful commit messages. Explain why the change was made, not just what.
- Review before merging. Use pull requests and code review for every change to shared branches.
- Protect the main branch. Require passing tests and approvals before merging.
- Never commit secrets. Keep passwords and API keys out of repositories; history makes them hard to remove.
- Version more than code. Keep infrastructure, configuration and documentation in version control too.
Common pitfalls
- Long-lived branches. They drift from main and produce painful merges.
- Giant commits. Mixing unrelated changes makes review hard and reverts risky.
- Rewriting shared history. Force-pushing to shared branches can destroy teammates' work.
- Storing large binaries in Git without tooling. Repositories become slow; use large-file extensions or other storage.
Version control underpins continuous integration, DevOps practices and reliable release management.
Frequently asked questions
What is the difference between Git and GitHub?
Git is a distributed version control system, created by Linus Torvalds in 2005 to manage Linux kernel development, and it records a repository's full history. GitHub is a hosting platform for Git repositories that adds pull requests, code review, issue tracking and CI/CD on top. GitLab, Bitbucket and Azure DevOps play a similar role, so the names are not interchangeable.
What is the difference between centralized and distributed version control?
In centralized version control, such as Subversion, CVS or Perforce, one central server holds the history and developers check files out and commit back to it. In distributed systems such as Git and Mercurial, every developer has a full copy of the repository and its history, and changes are shared between copies. Centralized systems persist where very large binary files are common.
What branching strategy should a team use with version control?
In trunk-based development, developers merge small changes into the main branch at least daily and hide unfinished work behind feature flags. Feature-branch workflows put each change on a short-lived branch merged through a pull request. Models with separate develop, release and hotfix branches suit scheduled releases with several supported versions. Shorter-lived branches mean fewer merge conflicts.
Related terms
What-If Analysis
Changing a model's assumptions to see how the outcome shifts.
UX Designer
The designer responsible for a product's structure, flows and interactions.
User Testing
Watching real users respond to a product or idea to learn what works.
User Segmentation
Splitting current users into groups that behave or need things differently.