CentOS6系でgitのバージョンアップをしないとシステムのセットアップ時にエラーになるので、
追加の手順を書きました。
■1.repositoryをCentOS-6.10に変更します。
cd /etc/yum.repos.d
mv CentOS-Base.repo _CentOS-Base.repo
touch CentOS-Base.repo
vi CentOS-Base.repo
[base]
name=CentOS-6.10 – Base
baseurl=http://vault.centos.org/centos/6.10/os/$basearch/
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
released updates
[updates]
name=CentOS-6.10 – Updates
baseurl=http://vault.centos.org/centos/6.10/updates/$basearch/
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
additional packages that may be useful
[extras]
name=CentOS-6.10 – Extras
baseurl=http://vault.centos.org/centos/6.10/extras/$basearch/
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-6.10 – Plus
baseurl=http://vault.centos.org/centos/6.10/centosplus/$basearch/
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
contrib – packages by Centos Users
[contrib]
name=CentOS-6.10 – Contrib
baseurl=http://vault.centos.org/centos/6.10/contrib/$basearch/
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
■2.gitをバージョンアップ
gitバージョンの確認
git –version
gitを削除
yum remove git
パッケージをインストール
yum install gcc curl-devel expat-devel gettext-devel openssl-devel zlib-devel perl-ExtUtils-MakeMaker
git2.0系をダウンロード
wget https://www.kernel.org/pub/software/scm/git/git-2.2.0.tar.gz
tar -zxf git-2.2.0.tar.gz
cd git-2.2.0
make prefix=/usr/local all
make prefix=/usr/local install
gitのバージョンを再確認
git –version
which git
type git
hash -r
git –version
gitcloneを行います。
git clone https://screny@github.com/