Update git version of CentOS (GIT 2. X)

Time:2021-7-30

Because the GIT version of CentOS is too low, there will be problems such as timeout when connecting to the remote warehouse during use, so you need to upgrade the GIT version.

Reference link
https://computingforgeeks.com…

Check git version

git --version**

Delete Git

yum remove git*

Install the latest version

yum -y install https://packages.endpoint.com/rhel/7/os/x86_64/endpoint-repo-1.7-1.x86_64.rpm
yum install git