Skip to content

Instantly share code, notes, and snippets.

@jalenjie
Forked from firstval/Git_Installation.sh
Created August 30, 2017 06:20
Show Gist options
  • Save jalenjie/5137c6fc3122b1426552c6cfbf2d99ea to your computer and use it in GitHub Desktop.
Save jalenjie/5137c6fc3122b1426552c6cfbf2d99ea to your computer and use it in GitHub Desktop.
Installing Git on CentOS 6.7
yum groupinstall "Development Tools"
yum install gettext-devel openssl-devel perl-CPAN perl-devel zlib-devel expat-devel curl-devel
yum install gcc perl-ExtUtils-MakeMaker
yum remove git
wget https://github.com/git/git/archive/v2.5.3.tar.gz -O git.tar.gz
tar -zxf git.tar.gz
cd git-2.5.3
make configure
./configure --prefix=/usr/local
make install
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
git config --global color.status "auto"
git config --global color.branch "auto"
git config --global color.interactive "auto"
git config --global color.diff "auto"
git config --list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment