Skip to content

Instantly share code, notes, and snippets.

@firstval
Last active September 22, 2022 16:44
Show Gist options
  • Save firstval/607b78b72527910882f0 to your computer and use it in GitHub Desktop.
Save firstval/607b78b72527910882f0 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
@ramsdevops
Copy link

Hi,
my machine is windows and i installed bento/centos-6.7 (vagrant box) on oracle virtual box and logged in through putty session
and my command on putty session shows like
[vagrant@work~]$

what is a good practice to install whether with root or non root previlige?
in which directory git repo has to be cloned?
in which directory we have to store the ssh keys?

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