Why Version Control Exists: The Pendrive Problem
How coders collaborate before the Git and GitHub

As we use the git for the version control and GitHub for the collaboration of the programmers. Before the git and GitHub programmers use to use the pendrive, zip-files, emails for the code exchanges and over the time it becomes disaster to manage such big code.
Pendrive Problem:
Suppose there will be two developers working on the same project and there will be no git and github exist. then all the code will be stored in the one main pendrive and it will be share between both of them and both have their own copy of the code.so at the initial stages of the project there will no to problem.
But as code grows there will be problem of the tracking will be appeared in the pendrive like both of them are not able to track the changes of each other, sometimes one developer codes some feature and another developer made the changes then all the time and effort wasted and it is not the efficient way to track the code over time it will be the big problem
In the pendrive if the code store for the long time it will also be prone to data loss, corruption etc. due to hardware damage. we need to keep the hardware more secure to avoid the losses
same kind of the problems also appears in the emails and documents after we make changes and share the final file to the different person he save the final file with another name and it will goes on and we become confuse between the final file at the end this is the problems that the programmers faced before the git and github

why we need version control of git?
As the programmer if we work on any project then we generally don’t code in one go we divide the whole project in the different features and then work features by features. and then merge the features together for the final project as the v1, v2…etc.
Then we make the various changes on the go like introduce new features also sometimes, the code will be finely run in the local environment but after deploying it breaks so for this, we need the git for our version control and track every stage of the code

In the above diagram, the workflow of the git has been shown in the working folder we have .git file and we use some command for the operations of the git
conclusion: Before the git and github the coders use to collaborate and track the code by various methods like pendrive sharing, zip-files, emails etc. and there will be the lots of problems in them that’s why the git is introduce
If you want to see the basic of the git and its most used command refer to the above article,



