Skip to content

Instantly share code, notes, and snippets.

@stiplady
Last active April 6, 2017 13:58
Show Gist options
  • Select an option

  • Save stiplady/fe62aaa6a2e1c9841d05602f34dcf0bb to your computer and use it in GitHub Desktop.

Select an option

Save stiplady/fe62aaa6a2e1c9841d05602f34dcf0bb to your computer and use it in GitHub Desktop.
Git Upgrade from 1.7.1 to 2.12.2
git --version
yum remove git
yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker
cd /usr/src
wget https://www.kernel.org/pub/software/scm/git/git-2.12.2.tar.gz
tar vxzf git-2.12.2.tar.gz
cd git-2.12.2
make prefix=/usr/local/git all
make prefix=/usr/local/git install
echo "export PATH=$PATH:/usr/local/git/bin" >> /etc/bashrc
source /etc/bashrc
which git
git --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment