How to Install Git on CentOS 6


 Install Git on CentOS 6


Git is associate degree open supply, distributed version system (VCS). It’s unremarkably used for ASCII text file management (SCM), with sites like GitHub giving a social committal to writing expertise, and widespread comes like Perl, Ruby on Rails, and therefore the UNIX operating system kernel mistreatment it.

Pre-Flight Check

These directions area unit supposed for putting in scum bag on CentOS half-dozen.

I’ll be acting from a Liquid net Core Managed CentOS half-dozen.5 server, and I’ll be logged in as root.

If you’re mistreatment CentOS five, then sit down with this tutorial on putting in scum bag from supply on CentOS five.

Step 1: Installation

First, you’ll follow a simple best practice: ensuring the existing packages are up to date before installing anything new.

yum update

Then it’s a matter of just running one command for installation via yum:

yum install git

You’ll be asked to substantiate the transfer and installation; merely enter Y to substantiate. Once this command is complete, bum are going to be put in and prepared to use!

As of the writing of this tutorial, the present version of bum on the market within the Liquid internet yum repositories is: bum version one.7.1. you’ll be able to check the version of bum that was put in by victimization the following command:

Step 2: Configuration

To prevent any commit errors, it’s a good idea to setup your user for git. We’ll setup the user testuser with the e-mail address [email protected] .

git config --global user.name "testuser"
git config --global user.email "[email protected]"

Next we’ll verify the configuration changes by viewing the .gitconfig . Since you may are roaming around your server’s filing system before beginning this tutorial, use the cd command to come back to your home directory:


And then view the .gitconfig :

cat .gitconfig

You can also view the same details of your configuration by using the following command:

git config --list

About the author

Wikitechy Editor

Wikitechy Founder, Author, International Speaker, and Job Consultant. My role as the CEO of Wikitechy, I help businesses build their next generation digital platforms and help with their product innovation and growth strategy. I'm a frequent speaker at tech conferences and events.

Add Comment

Click here to post a comment