Note that you can use Git itself from now onward to update Git, like so, cd /usr/local/bin/ You have successfully installed Git on CentOS server. Now confirm the version of git installed, git-2.26.0]# git -version Make install install-doc install-html install-info Now, back in the terminal, run the following commands (but change the wget url/version accordingly for the version you are installing), yum install gettext-devel -y Left-click on the tar.gz link for that version and ‘ Copy Link Location‘. git/git/archive/v2.26.0.tar.gzįor other releases use: /git/git/releases To install from source, go ahead and log into your server via SSH as the root user.įirst, we’ll need to grab the latest available version,
We recommend using 2.26 for now with CentOS 7 unless you’re savvy with repo additions. Version 2.28 requires asciidoc and xmlto packages and may require a 3rd party repo to install.