Skip to content

Instantly share code, notes, and snippets.

@SiZapPaaiGwat
Forked from firstval/Git_Installation.sh
Created November 7, 2016 15:20
Show Gist options
  • Save SiZapPaaiGwat/81736a7acf6cff32c6ea1b6f5ca29cb2 to your computer and use it in GitHub Desktop.
Save SiZapPaaiGwat/81736a7acf6cff32c6ea1b6f5ca29cb2 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