Git is called a version control system because its job is to record the history of a project’s files. Every saved state of the project is kept, so you can see what changed, compare versions and return to an earlier one. “Version control” is the name of that job, and Git is one tool that does it.
What “version control” means
A version control system keeps track of changes to files over time. In Git, each saved state is called a commit. A commit records the changes, when they were made, who made them and a message describing them. With that history, you can:
- See what changed between two versions of a file.
- Return to an earlier version if a change breaks something.
- Work on a change in a separate branch, then merge it back in.
- Keep a full history when several people edit the same project.
The same job is also called revision control or source control, so you may see all three terms used.
Where the name comes from
Linus Torvalds created Git in 2005 to help develop the Linux kernel. He has said the name is British slang for an unpleasant person, and he has joked that he names his projects after himself. So the name “Git” says nothing about the job. The job is described by the term version control, and Git is the tool that does it.
Why Git is distributed
Git is a distributed version control system. Each person who clones a repository gets a full copy of its history on their own computer. You can commit, create branches and look through history without a network connection, then push your work to a shared server when you are online.
How this applies to machine learning
Git is a strong fit for the code side of a machine learning project. Training scripts, preprocessing steps and configuration files are all text, and Git tracks text changes well. Git is a weaker fit for large model files and datasets, which can grow a repository quickly. For those, teams often add a tool such as DVC or Git LFS. For the wider picture, see version control machine learning models.
Git versus the place you host it
Git runs on your own computer. Hosting services keep copies of Git repositories online so teams can share them. The difference between the tool and the hosting service is covered in “is github a version control?”
Summary
Git is called version control because that is the job it does: it saves a history of changes to files, so you can review, compare and restore them. The name “Git” is simply the tool’s name, while “version control” describes the work.