Last active
April 6, 2017 13:58
-
-
Save stiplady/fe62aaa6a2e1c9841d05602f34dcf0bb to your computer and use it in GitHub Desktop.
Git Upgrade from 1.7.1 to 2.12.2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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