Upgrade Git on Ubuntu 20.04
If you'd like to confirm the installed version of Git on your system run the following command:
Let's add the PPA repository for the latest stable git version
sudo add-apt-repository ppa:git-core/ppa
If you're not running your terminal instance as root, you will have to enter your password.
Press Enter at the next prompt and proceed to update the system registries and upgrade Git
sudo apt update && sudo apt upgrade -y
Once again confirm that Git has upgraded successfully
Please leave comments in the comments section if you have any issues following this guide and I'll try my best to get back to you ASAP.