Skip to content

Instantly share code, notes, and snippets.

@hoganlong
Forked from 30equals/git_install_redhat
Last active December 17, 2015 00:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hoganlong/5521710 to your computer and use it in GitHub Desktop.
Save hoganlong/5521710 to your computer and use it in GitHub Desktop.
#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
@hoganlong
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment