Skip to content

Instantly share code, notes, and snippets.

@HamidNE
Last active March 12, 2020 18:31
Show Gist options
  • Save HamidNE/ddb2c9d7431ba3312f2f8161bf0e0c3c to your computer and use it in GitHub Desktop.
Save HamidNE/ddb2c9d7431ba3312f2f8161bf0e0c3c to your computer and use it in GitHub Desktop.
Install Git CentOS
sudo yum groupinstall "Development Tools"
sudo yum install gettext-devel openssl-devel perl-CPAN perl-devel zlib-devel
sudo yum install curl-devel

Git Source

wget https://github.com/git/git/archive/v2.1.2.tar.gz -O git.tar.gz
tar -zxf git.tar.gz
cd git-*
make configure
./configure --prefix=/usr/local
sudo make install
git --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment