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.
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.
Then it’s a matter of just running one command for installation via yum:
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@example.com .
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 :
You can also view the same details of your configuration by using the following command: