1. Install git yum install git

  1. View the Git information in the yum repository

yum info git

  1. Installing dependent libraries

yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel yum install gcc-c++ perl-ExtUtils-MakeMaker

  1. If the original Git version is too old, remove the old git version installed by default

Git –version yum yum remove git ##