How to Install and Configure Git on Centos 7

install git centos 7 | hostingride

What is Git?

Git is commonly used for source code management. Git is one of the most popular tools used as a distributed VCS (version control system).

Step 1:- Simply run yum update command given below.

# sudo yum update

Step 2:- Install git with YUM

The best way to install any package also git using YUM (yellow update manager).

This is the fasted way to install any package in centos 7.

Simply type below command to install Git using Yum.

# sudo yum install git

After running this command you will have install successfully git.

Step 3:- To check Git correctly install with this command.

# git --version
Output:-
git version 2.7.5

 

Now Configure Git on Centos with username or Domain name.

Simply type following commands.

# sudo git config --global user.name "Your Name"
# sudo git config --global user.email "mail@domain.com"

U can also check git configuration with the following command.

# sudo git config --list
Output:-

user.name= Your Name
user.email= yourmail.com

 

Conclusion:-

You have git installed and ready to use on your Centos system
Also
 visit:-  How to install git and configure git on Ubuntu

Blog type: 

Add new comment

Authored By

Sandeep Gurjar

Hy all, This is Sandeep Gurjar am the founder of hostingride.in. I am a Redhat Certified Engineer (RHCE) / AWS Solutions Architect-Associate and working as an system administrator since 2016.

Follow us on

Facebook​  Twitter  LinkedIn  Google+