Git is a free and open source distributed version control framework intended to deal with everything from little to extremely huge tasks with speed and effectiveness. Git is a distributed version control framework for following changes in source code during programming advancement. It is intended for organizing work among software engineers, yet it tends to be utilized to follow changes in any arrangement of records. Its objectives incorporate speed, data integrity, and support for distributed, non-direct work processes.
To understand the architecture of Git, let us understand how the VCS work (Version Control System). Generally VCS works by having two places to Store the things.
There are 3 main Components in Git as mentioned below.
The working tree or working registry, comprises of documents that you are at present working on it. You can think about a working tree as a document framework where you can view and change records.
The index or staging region, is the place submits are prepared. The index compare at the records in the working tree to the documents in the repo. When you make a change in the working tree, the index marks the file as modified before it is committed.
The repository, or repo, is the "container" that tracks the progressions to your project files. It holds all the commmits—a preview of every one of your documents at a point in time—that have been made.
We shall install Git from the system default repositories, and make sure that your system is up-to-date with the latest version of packages by running the YUM package manager update command below
To install Git version 2 in Red hat Linux, you need to download and install endpoint-repo-1.7-1.x86_64.rpm. You can click here to download the repository.
Once download is finished, run below command to install the repository.
Then install the Git version by using below command.
Rpm –ivh git-2.24.1-1
Now the Git version 2 is installed and ready to use.