DEV Community

ankushshah
ankushshah

Posted on • Originally published at linux4one.com

How to Install Git on CentOS 7

Git is the most popular version control system nowadays. It helps to share and collaborate on software development projects. It is mainly used for source code management. In this tutorial, you are going to learn how to install Git on CentOS 7.

Prerequisites
Before you start installing Git on CentOS 7. You must have the non-root user account on your Server or Desktop with sudo privileges.

  1. Install Git on CentOS To install latest Git in CentOS you will need to enable GIT repository in CentOS. First, create a new file inside /etc/yum.repos.d/ directory using following command. Then copy the lines given below the command.

Top comments (0)