Why Version Control Exist?
In this blog I am trying to explain Existence of Version Control. I would like to start with a story where version control is not exist. So, Let’s suppose you are working on project going good at this project but at a point of you get stuck and then you want to take help to your friend so What will you do? take a pendrive copy/paste in it and then go to your friend home. your friend solve the problem in the same pendrive he fill the write file of code and then give you now you have write code but when you want to implement new code so you don’t know what you friend wrote the code that means “problem of tracking record” and at a same time only one person work on the project “collaboration problem” and there is no record of “history” we keep the file name first_project.zip, first_project_copy.zip, first_project_copy1.zip, first_project_copy2.zip so you can see how is this difficult to manage the project and suppose if 10 to 15 persons work on same project so the pendrive method is totally fail.
Now, Version control comes into the picture
Version control has many tremendous features which really help to manage the code as a developer and collaborate to others such a nice way. github features:-
Tracking the code
To help of version control a developer can track the code. He/She can know the new insertion of code and deletion of code from the source code. github does not give the final code it records every single commit by collaborators so when needed to go back at a particular point.
Collaboration
At a single time multiple persons can work on a project every change are safely merged no overriding headache and no waiting issue but in the pendrive we need to move a pendrive every time there is no need to that.
Knows who changed or what?
Each name is recorded who push the code into repository with proper timestamp and message which provide accountability.
From pendrive to git.
Instead of passing pendrives → we use repositories
Instead of copies → we use commits
Instead of confusion → we get clarity
In the summary:-
Git exists because humans forget, team grow, software changes. where pendrive approach gets fail and git fixes that.
I hope who are reading this blog. It finds helpful and something get from this blog. For feedback can connect through these links.