How to Install Git on Centos: 4 Steps - MakeSureHow
Edit Article

  • 1 Editor

In this tutorial we will show you how to install and configuration of Git on your CentOS server. For those of you who didn’t know, Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.


  1. 1
    First let’s start by ensuring your system is up-to-date.
    • yum clean all
    • yum -y update
  2. 2
    Installing Git. "Method 1 — Install Git with Yum" Run the following commands in for installation Git via yum:yuminstall git "Method 2 — Install Git from SourceBefore" installing Git from source code, make sure you have already installed required packages on your system:Once the dependencies have been installed then we need to find out and download the latest version of Git software, At the moment of writing this article it is version 2.10.0:
  3. 3
    After downloading and extracting Git source code, Use following command to compile source code:
    • cd git* make configure /configure --prefix=/usr/local make install
  4. 4
    To check current version installed of Git use following command:
    • [root@idroot ~]# git --version git version 2.10.0


  • Congratulation’s! You have successfully installed Git. Thanks for using this tutorial for installing Git in CentOS systems. For additional help or useful information,we recommend you to check the official Git web site.

Article Tools

Did this article help you?


an Author!

Write an Article