Nepedia
Back to Discover
Fluent Reader
💻

Version control

technology Maturity 5-7 war conflict Next article →

This article covers sensitive topics: war_conflict. Parents can manage visibility in Parental Controls.

Version control is a way to organize and track computer files. It is a very important practice for software engineers. This practice is also called source code management or revision control. It helps people keep track of different versions of a file's history.

Revision controlled project visualization-2010-24-02
Revision controlled project visualization-2010-24-02

You can use it to see old versions of a file. You can even revert a file to how it looked before. This is helpful for many kinds of work. It is used in word processors and even on Wikipedia.

Working on software can be a hard job for teams. Different developers often work on the same code at the same time. They might work on one version to fix bugs. This is often called a branch. At the same time, they might work on a different version to add new features. This main path is called the trunk.

Revision controlled project visualization-2010-24-02
Revision controlled project visualization-2010-24-02

Without version control, people might just keep many copies of the same file. This is very inefficient and can lead to many mistakes. Version control automates these steps to make things easier.

People have been working on these tools for a long time. One early tool was IBM's OS/360 IEBUPDTE from 1962. Later, two tools called The Librarian and Panvalet were used. In 1972, a system called the Source Code Control System, or SCCS, began. Its manual was published on December 4, 1975. This was likely the first deliberate revision control system. Later, the Revision Control System arrived in 1982. Then came the Concurrent Versions System, which added network features. Eventually, tools like Subversion and Git became very popular.

When you change a file, it is not updated in the main storage right away. First, you must retrieve it through a process called checking out. The file you edit on your computer is called a working copy. When you are finished, you must check it in or commit it.

Revision controlled project visualization-2010-24-02
Revision controlled project visualization-2010-24-02

Each version gets a specific version number or revision level. Every change also has a timestamp and a name. This tells you exactly when the change happened and who did it. This makes it easy to compare different versions of the same work.

Think of version control like a tree with branches. The main part of the tree is the trunk. When someone starts a new task, they create a branch. This is a separate path of work that grows away from the trunk.

Revision controlled project visualization-2010-24-02
Revision controlled project visualization-2010-24-02

When the work is done, the branch can be joined back to the trunk. This joining process is called a merge. Merging can be a complex task if the changes overlap. Some systems use one central repository to hold all the data. Other systems are distributed, so there is no single main storage. This allows people to work together from anywhere in the world.

462 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (1)
File:Revision controlled project visualization-2010-24-02.svg
Revision controlled project...
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.