Installing the latest version of git on Ubuntu

less than 1 minute read

An image with the git logo and text that says Install Latest Git on Ubuntu

I was reading about the latest git security issue this evening when I realized that upgrading the Windows version of git using Chocolatey gave me a much newer version than the Ubuntu version on WSL.

C:\>git --version
git version

I found this description of how to Install latest Git on Ubuntu-based Linux distributions by adding a new Personal Package Archive (PPA) to your apt repository list that tracks the latest version of git.

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

Now I have the latest version installed.

$ git --version
git version 2.30.2