Git Version Up

Contains information related to the git

Completed Medium

Check the dates: use valid calendar dates in YYYY-MM-DD format.

Start
Check date
End
Check date
Period
Not set
PIC
Edward Jobs
Last Updated
September 27, 2026
Tags

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