What is GIT?
Git is a free and open-source distributed version control system, which is designed to
handle everything from small to very large projects with speed and efficiency.
What are the advantages?
Imagine a scenario without using Git.
There is a large project and 100 developers are working on the project.
• Developers used to submit their codes to the central server without having a
copy of their own.
• Any changes made to the source code were not known to the other developers.
• There was no communication between any of the developers.
Now, let's analyse the scenario after using Git.
• Every developer has an entire copy of the code on their local system.
• Any change made to the source code can be tracked by others.
• There is regular communication between the developers.
Therefore, for large projects that involve thousands of developers, Git helps those
developers to work collaboratively and efficiently in a structured manner.
Uses of Git
• Git is used to tracking changes in the source code.
• Distributed version control tool used for source code management.
• Allows multiple developers to work together.
• Supports non-linear development because of its thousands of parallel branches.
Features of Git
• Free and open-source
• Tracks history
• Supports non-linear development
• Creates backup
• Scalable
• Supports collaboration
• Branching is easier
• Distributed development.
Git WorkFlow
In Git, the workflow is mainly divided into three areas -
• Working directory - This is the area where you modify your existing files.
• Staging area (Index) - In this, the files in your working directory are staged
and snapshots are added.
• Git directory or repository - It is basically where you perform all the changes
that need to be made i.e. perform commits to branch, checkout branch, make
changes etc.