Most teams have met the folder of files named final, final-v2, and final-REAL. AI tools have multiplied the problem, since a prototype can now change dozens of times in an afternoon, often through prompts nobody remembers writing. A project that moves this fast needs a memory that everyone on the team can read, not only the engineers.
In this glossary topic:

What is version control?
Version control is a way of recording changes to a set of files over time, so that any earlier version can be found, compared, and restored later. Each saved point captures what the files looked like, who saved them, when, and a short note explaining why. The software that does this is called a version control system, or VCS. The best-known one is Git, which GitHub's documentation describes as the most popular distributed version control system.
Without version control, teams fall back on file names to track versions: homepage-final.html, homepage-final-v2.html, homepage-final-REAL.html. That works until 2 people edit the same file, or until nobody can remember which copy holds the approved text. The idea isn't limited to code either, and the Pro Git book recommends it to graphic and web designers who want to keep every version of an image or layout. Version control replaces a folder of guesswork with a single history everyone shares.
How does version control work?
Version control works by saving on purpose. When a change is ready, a person or a tool records it as a new entry in the project's history, and in Git that entry is called a commit. Every entry points back to the one before it, so the history reads as a single timeline from the latest change back to the very first. GitHub's documentation sums up what that timeline answers: which changes were made, who made them, when, and why.
The timeline is useful because of 2 operations. Comparing any 2 entries produces a diff, which on GitHub marks removed lines in red and added lines in green, so a reviewer sees exactly what changed without rereading whole files. The Guide to Git Commits & Version History lesson shows how to read one. Restoring brings back an earlier state, and on a shared project the safest way is a revert: a new entry that cancels an old one while leaving it on the record.
Most systems also support parallel work. Branches hold separate lines of changes that are merged back together later, and when 2 people change the same lines, the system stops and asks a person to choose instead of quietly keeping one version. Any entry can be compared with any other and brought back when needed, which is what makes experimenting safe.
What are the types of version control?
The Pro Git book describes 3 main designs for version control systems:
- Local systems keep the history in a small database on one computer. RCS, an early example, stored only the differences between versions and rebuilt any version by adding them up. They work for one person and break down once a team needs to share.
- Centralized systems, such as CVS, Subversion, and Perforce, keep the full history on a single server, and each person checks out the files they need. For many years they were the standard, and they gave administrators fine control over who could do what. Their weak point is that server: when it's down, nobody can save versioned changes.
- Distributed systems, such as Git and Mercurial, give every copy of a project the complete history, so work continues offline and any copy can restore a lost server.
Each design answered the weak point of the one before it: sharing for local systems, and a single point of failure for centralized ones.
How does version control differ from live shared documents?
Shared online documents, such as Google Docs, also keep a version history, but they build it differently. A live document saves continuously as people type, so its history becomes a long stream of timestamps like Edited 2 minutes ago. Google Docs does let people name a version by hand, but most of the record is automatic and says nothing about what each change was for. Version control saves on purpose: someone decides when a change is complete, saves it as one entry, and writes a short message such as Add allergy notes to cupcake menu.
The 2 models also handle teamwork differently. In a live document, everyone edits one shared copy at the same moment. In version control, each person works on their own copy or branch, and changes are combined deliberately, with any clash flagged for review. Autosave remembers everything, while version control remembers what mattered. A study of students learning Git found that many expected it to behave like a live shared document, which is one reason the idea trips up newcomers.
What can't version control undo?
Version control protects the files inside a project, and its undo stops at their edge. It can't bring back database records that an app or an AI agent deleted, account and hosting settings such as domains, plans, or permissions, or emails, payments, and messages an app has already sent. Those live outside the tracked files, with their own history or none at all. The How to Undo Changes on GitHub lesson lists what falls outside its reach.
Leaked secrets surprise people the most. Deleting an exposed API key in a new version doesn't make it safe, because every earlier version still contains it and someone may already have copied it. GitHub's guidance is to revoke or rotate the key before anything else. Anything that has already left the files, from a sent email to a copied key, is beyond version control's reach.
How has version control changed with AI?
AI tools have changed how often saves happen and who makes them. App builders connected to GitHub save work on their own, and some commit after almost every change, so a single afternoon of prompting can add dozens of entries with short, generated messages. The people reading those histories have changed too. Linear's product data shows that between June 2024 and June 2026, the share of product managers attaching pull requests to their work in Linear rose from 3% to 10%, and the share of designers from 1% to 8%.
That makes the history the team's way back from an AI tool's mistakes, as long as the request is precise. A prompt like undo that leaves the tool guessing and may reverse more than intended. A request that names the change, such as the commit that changed the pricing page, and asks for a revert keeps the history intact and the fix visible. When an AI tool writes the changes, the history is how a team finds out what the tool actually did.
What does version control look like in practice?
On GitHub, version control mostly looks like a list. A repository's history shows each saved change with its message, its author, how long ago it was made, and a short ID, newest first and grouped by day. Read from the top, a well-kept history works like a changelog anyone on the team can scan. A message named for its result lets anyone understand an entry months later without opening it.

Deliberate, named saves turn a project's history into a record a team can search when something breaks. From the lesson What Is Version Control?.
Undoing a change adds to that list instead of erasing from it. When a price update turns out to be wrong, a revert creates a new entry that cancels it, and the original stays visible underneath with its author and time.

An undo that adds to the history instead of erasing it keeps the mistake and its fix visible to everyone.





