stephnangue / openlab

0 stars 0 forks source link

0. What Git is #3

Open stephnangue opened 1 year ago

stephnangue commented 1 year ago

Git is the most popular Distributed Version Control System. So in order to understand what Git is, we need to know what a Version Control System is. A Version Control System or VCS is a tool that keeps track of every modification to your source code. So every time you change your source code you record that change using a VCS such as Git. Since the VCS holds the history of all changes to your source code, you can move back and forth along that history. Therefore, the main advantage of using a VCS is the ability to quickly recover from changes of unintended consequences, by moving back along the history of changes. [Image to illustration rollback]

Now that you know what a VCS is, let me explain you what a Distributed VCS is. A VCS stores your source code along with the history of changes inside a repository. A Distributed VCS enables every developer to have a copy of that repository on his computer. So with DVCS, every developer works on a local repository, and when he is ready, he shares his changes with other developers, by pushing those changes to a central repository usually called the remote repository. The advantages of a DVCS are many folds :

Talk about repository online hosted services.