LoginSignup
19
17

More than 5 years have passed since last update.

CentOS 6.5にgit 2.0.1を入れる

Last updated at Posted at 2014-07-11

CentOS6.5上にgitのcloneをするときにbasic認証が上手く効いていない気がしていて、ちょっとググったら、gitのversionが古いとこういう感じになるらしい。

# git --version
git version 1.7.1

どうせなので最新版にupgradeすることにした。

手順

標準のgitをuninstall

# sudo su
# yum erase perl-Git

最新のgitの設定

$ sudo su
# cd /usr/local/src/
# wget https://www.kernel.org/pub/software/scm/git/git-2.2.2.tar.gz
# tar xzvf git-2.2.2.tar.gz
# cd git-2.2.2
# make prefix=/usr/local/git all
# make prefix=/usr/local/git install
# source /etc/bashrc
# git --version
git version 2.2.2
19
17
3

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
19
17