Skip to main content

Command Palette

Search for a command to run...

Why Version Control Exists

Updated
2 min readView as Markdown

Hello my developers, today we will understand why Version Control System exist (i.e Git). Along with that let us also go deep dive into how people used to manage and collaborate on code before Version Control System.

Before Git

Let us assume with an example, suppose one developer is working on building a software. He his just writing the code in his local machine alone and chilling him self. One day he wanted to add a new feature to his existing code, which can be done by his friend. So person A copies the entire code and gives it to person B to develop the new Feature. Person B develops the new feature and copies the latest code in the pendrive and gives it back to the Person A. For suppose there will be third person who wants to develop a new feature. So again copy the latest code in the pendrive and gives it to person C and he develops the new feature and latest code in the pendrive with code given to person A.Here we faced two major concerns one is we never know what lines of code is being added by whom along with that we never know what lines of code is being deleted by the person along with that only the person who has the pendrive are able to work because he his having the latest code, if other 2 works on their local machine there will be a code over-writing or mismatch of the code. these problems can be solved by using Git.

Using Git:
By using Git, when we install git, git tracks the code, git makes our life easy by telling which lines of code is being added by whom. All the developers can work together and can merge the code. so thats how git resolves this issues.