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
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
Step 2: Update the repository
Step 3: Install Git 2.28.0
Method 2: Via Source File
Step 1: Install the required dependencies
For Ubuntu
For CentOS
Step 2: Download the source file using the below command
Step 3: Extract the package and configure it
Step 4: Compile the GIT
Verify the installed version using the below command
Your command line for “Step 3: Extract the package and configure it”, I believe there should be a hyphen (-) before “prefix”. I’m not sure what character it is that you used (–), but it caused an error when I ran the command.