Install Git 2.28.0 in Ubuntu 20.04 / Linux Mint / CentOS

Git Logo

Git a free and open-source distributed version control system designed to handle everything from small to large projects with speed and efficiency. It is a client for the Popular GitHub.

This tutorial will be helpful for the beginners to install git 2.28.0 in Ubuntu 20.04 LTS, Ubuntu 18.04 LTS, CentOS 8.X and Linux Mint 20

Related:  Install Pidgin 2.14.1 in Ubuntu / Linux Mint / Manjaro Linux

The latest version of GIT is 2.28.0 which is a stable version and it is released on 27th July 2020.

What’s new in Git 2.28.0?

For complete changelog refer the release notes

How to Install Git 2.28.0 in Ubuntu / Linux Mint & CentOS?

Two ways we can install Git

  • Method 1: Via PPA
  • Method 2: Via Source file

Method 1: Via PPA

Step 1: Add the Official PPA by GIT

sudo add-apt-repository ppa:git-core/ppa

Step 2: Update the repository

sudo apt update

Step 3: Install Git 2.28.0

sudo apt install git

Related:  How to Install Oracle Java 14 on Ubuntu 20.04

Method 2: Via Source File

Step 1: Install the required dependencies

For Ubuntu

apt install libssl-dev libcurl4-gnutls-dev zlib1g-dev

For CentOS

yum install openssl-devel curl-devel expat-devel gettext-devel zlib-devel perl-ExtUtils-MakeMaker

Step 2: Download the source file using the below command

wget https://www.kernel.org/pub/software/scm/git/git-2.28.0.tar.gz

Step 3: Extract the package and configure it

tar -xvzf git-2.28.0.tar.gz && cd git-2.28.0 && ./configure –prefix=/usr/local/git

Step 4: Compile the GIT

make && make install

Verify the installed version using the below command

git –version

One Response
  1. Max Vizion August 12, 2020 Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

Secured By miniOrange