RHEL 7 Install latest git

This article will show you how to install git 2 on RHEL 7 server

Remove old git if exists

sudo yum -y remove git
sudo yum -y remove git-*

Add repo to RHEL 7

sudo yum -y install https://packages.endpointdev.com/rhel/7/os/x86_64/endpoint-repo.x86_64.rpm

# Run install commands when above complete
sudo yum install git

# Example output
====================================================================================================================================================================================
 Package                                      Arch                               Version                                       Repository                                      Size
====================================================================================================================================================================================
Installing:
 git                                          x86_64                             2.37.1-1.ep7                                  endpoint                                        70 k
Installing for dependencies:
 git-core                                     x86_64                             2.37.1-1.ep7                                  endpoint                                       8.1 M
 git-core-doc                                 noarch                             2.37.1-1.ep7                                  endpoint                                       2.8 M
 perl-Error                                   noarch                             1:0.17020-2.el7                               rhel-7-server-rpms                              32 k
 perl-Git                                     noarch                             2.37.1-1.ep7                                  endpoint                                        46 k
 perl-TermReadKey                             x86_64                             2.30-20.el7                                   rhel-7-server-rpms                              31 k

Transaction Summary
====================================================================================================================================================================================
Install  1 Package (+5 Dependent packages)

Total download size: 11 M
Installed size: 41 M
Is this ok [y/d/N]: y

# Verify git version
git --version

Scroll to Top