Git Version Up

Contains information related to the git

How to Upgrade Git Version on CentOS

Preliminary Preparation

  • If wget and gcc commands are not installed
yum -y install wget gcc

If an Old Version of Git Exists, Execute the Following

yum remove git

Install the Following

sudo yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel perl-ExtUtils-MakeMaker

Download Source Files

wget https://www.kernel.org/pub/software/scm/git/git-2.9.3.tar.gz

Unzip the Downloaded File

tar -zxf git-2.2.0.tar.gz

Install Git

cd git-2.9.3
make prefix=/usr/local all
make prefix=/usr/local install

Check Git Version

git --version

No such file or directory または そのようなファイルやディレクトリはありません と表示された場合

hash -r

Reference URL

git 

See also