Before delving into the specifics of Git, we must first explain what version control is because Git is a version control system. This article will explain what version control is and what’re its benefits.
Anything from text documents to software go through cycles of development and revisions to get to the current place that they’re at. Much of the time, multiple people are modifying different things at once or even making conflicting changes, resulting in a non-linear series of changes.
How all these issues are dealt with depends on the version control system being used. In essence, anything that allows people to manage changes done to something is a version control system. There are many applications of version control in our daily lives outside of programming. One example of this is being able to check version history and revert changes in Google Docs.
How Google Docs implements version control
Photo: docs.google.com
We will dive into how Git implements version control in the next article, but for now, we’ll talk about its benefits when it comes to developing software.
Significant pieces of software are virtually never developed completely alone and undergo countless changes. This results in a potentially complicated net of changes which must be kept track of to do things like revert a specific set of changes or keep track of who did what. It is because of this that version control is vital for software development.
A graph of changes to a project over time.
Graph: Made using the Git Graph Visual Studio Code extension
Whatever field of computer science you end up doing, you will always encounter the usage of version control in some way or another, which is why lower division computer science courses such as CSE 12/L and CSE 13 make you get into the habit of using Git. Although the projects you do in those courses will be alone and not with other contributors, it is still extremely useful for reverting bad changes, seeing what was done when, and for other reasons that will be explained in the next article.
Now that we’ve covered what version control is, the next article will explain what Git does to implement a version control system to reap the benefits of using it as explained above.