-
-
Save hoganlong/5521710 to your computer and use it in GitHub Desktop.
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
#first install the compiler | |
yum install gcc gcc-c++ autoconf automake | |
#install zlib-devel as it's a dependency | |
yum install zlib-devel | |
#then get and build git from source | |
cd /usr/lib | |
wget "https://git-core.googlecode.com/files/git-1.8.2.2.tar.gz" | |
tar xzvf git-1.8.2.2.tar.gz | |
cd git-1.8.2.2 | |
./configure | |
make | |
sudo make install | |
#if you get an error after the 'sudo make install' command, try installing the 'tk' package (sudo yum install tk) and try again |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You might want to go to https://code.google.com/p/git-core/downloads/list and see what version to download. Then change lines 9 to 11 as you wish.