Version control principles

Version control is a way to track changes made to a file, creating a history of the file that can be reviewed. It is important to keep different versions separated in almost all situations, because:

There are both informal and formal ways of using version control for your files. However, for both ways, the typical procedure is as follows:

  1. Do something with a file (create, edit, remove)
  2. Save the file
  3. Register the change by making a snapshot of the file status, i.e., a version

In informal ways, step 2 and 3 cannot always be separated. Sometimes, step 3 is even left out completely, which, from personal experience, I cannot recommend you to do! ​ In formal version control systems, however, step 3 is a necessary step that cannot be skipped, forcing you to create a new version each time you make a change.

Informal ways to use version control

It is highly recommended to make a habit out of at least one, but preferably more of the following practices if you do not (want to) use a formal version control system:

Formal version control systems

There are also formal version control systems, such as:

These actually need to be installed and worked with while or after you are editing files. They require some knowledge and skills of the systems, but they also reward you with perfect file histories and reverting possibilities. The next chapter will go into the most often used version control system: git.