Once it’s downloaded, extract it and enter GIT’s root directory /git. You can also rename the file if you like in the same command using:ģ. Afterward go to the GITHUB projects releases page and download the latest one: Sudo yum install gettext-devel openssl-devel perl-CPAN perl-devel zlib-develĢ. Sudo yum groupinstall "Development Tools" Use these commands to install the prerequisite software In order to use this method, you’ll need a longer list of prerequisites installed.ġ. However, if you want to use GIT independent of the distro you’re running. But as you can see, to use this method you really need to have more information about your system beforehand. Finally run the install command to update itĪs far as this method goes, that’s all there is to it. Once it’s downloaded, you will need to edit the repo and set it to enabled = 1 usingĤ. Find and download the appropriate package for your distro.ģ. The first is getting RepoForge (formerly RPMForge repository, that you can grab from /use. While getting the base version of GIT is simple, you do need a couple of prerequisites. You need to know which distro and version you’re running. But let’s keep going and make sure you’re up to date: Updating GITġ.
Once GIT is installed you can check the version using
The installation will handle itself automatically, just hit ‘ y‘ when prompted.Ĥ. The simplest way to install git is using CentOS’s own YUM package manager and you won’t need any prerequisites for this installation which is nice.ģ. There are actually two ways you can set this up: GIT is reliable, widely used, open and free! So let’s take you through the setup. People use it to make sure everyone is working on the same version of code, to track changes and maintain progress. GIT is a version control tool that helps you to maintain and sync versions of things like files, directories, or code between between developers and teams. This will be entirely a tutorial article aiming to walk you through installing GIT on CentOS and integrating it with GITHUB.