Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@josketres
Created June 15, 2015 10:41
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 josketres/22c61066c941401e6f57 to your computer and use it in GitHub Desktop.
Save josketres/22c61066c941401e6f57 to your computer and use it in GitHub Desktop.
Install newest git on CentOS 6
# from https://www.digitalocean.com/community/tutorials/how-to-install-git-on-a-centos-6-4-vps
# added curl-devel - https://stackoverflow.com/questions/8329485/git-clone-fatal-unable-to-find-remote-helper-for-https/13018777#13018777
TMPDIR=/data/tmp
sudo yum install zlib-devel perl-ExtUtils-MakeMaker asciidoc xmlto openssl-devel curl-devel
cd ~
wget -O git.zip https://github.com/git/git/archive/master.zip
unzip git.zip
rm git.zip
cd git-master
make configure
./configure --prefix=/usr/local
make all doc
sudo make install install-doc install-html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment