Install Git in AWS – EC2 Instance

Install Git in AWS – EC2 Instance

##Login as a root user
sudo su –

##Change dir to /opt
cd /opt
##The below command will download and install all required development libraries to your system.

yum groupinstall “Development Tools” -y

yum install gettext-devel openssl-devel perl-CPAN perl-devel zlib-devel curl-devel -y
yum install wget tar -y

##Open below URL and select the specific version and right click on that and click on Copy Link ##Address, then execute the wget command.
##https://github.com/git/git/releases

wget https://github.com/git/git/archive/v2.18.0.tar.gz -O git-bash.tar.gz
tar -zxf git-bash.tar.gz

cd git-2.18.0
make configure
./configure –prefix=/usr/local
##make install command will copy the built program, and its libraries and documentation, to the correct locations.
make install

git –version

git config –global user.name “Mithun Technologies”
git config –global user.email “devopstrainingblr@gmail.com”
git config –list

Post Tags :

Leave a Reply

X