Version Controlling

MD. Arif Ahmed
2 min readNov 13, 2022
Version Control

What is a version control system?

A version control system is a method capable of recording changes to a file or set of files over a time period, so programmers could recall a specific version later. In practice, computer code often takes the form of sketches that are gradually refined. later, the code can be optimized or corrected, sometimes for many years.

Soon enough, programmers realized that they needed to not only store files but also keep track of the different versions of a given file.

Why need Version Control System

  1. A change in the code that we thought was appropriate may cause problems, so we need to go back quickly.
  2. Sometimes different versions of the code are used at the same time and it is not possible for all users to switch to the latest version.
  3. It is sometimes useful to be able to go back in time to study the evolution of the code in order to understand the motivation behind the section of this code.
  4. Sometimes programmers do some experiments on features that people like or not. If not rolled back to the previous versions

Semantic Versioning Example: 1.2.3

The first number is called the major version number. If there is a major change in the code the first number must be increased and the other two reset to zero. The second number is known as Minor and the third is known as Patch. For example, a change that requires a higher version of language. Require additional library and so on

The second number(Minor) is increased when the changes are minor. For example, adding a function to the current project or changing some layout.

The last number is also known as the patch is increased when fixing bugs in code. The other two numbers remain the same.

Conclusion

Version control is a process that helps programmers in many ways. There are many tools for Version Control, Git is one of them. With the help of version control, multiple developers can work on the same complex project with less effort.

--

--