

Just update Ubuntu to get the latest Git stable version.ĭid you know that the Git version control system was created by none other than Linux creator Linus Torvalds? Configure Git The beauty of using PPA is that if there is a new stable version of Git released, you’ll get it with the system updates. sudo add-apt-repository ppa:git-core/ppaĮven if you had installed Git using apt previously, it will get updated to the latest stable version.

Thankfully, there is a PPA available from Ubuntu Git Maintainers team that you can use to easily install the latest stable Git version. That cool, old school method is not everyone’s cup of tea. One way would be to install from source code. So how do you install the latest Git on Ubuntu then? Install latest Git on Ubuntu-based Linux distributions This is why when you check the Git version, you’ll see that it installs a version which is older than the current Git version available on Git project’s website: :~$ git -versionĪt the time of writing this tutorial, the version available on its website is 2.25. On an LTS system, software stability is of utmost importance this is why Ubuntu 18.04 and other distributions often provide older but stable versions of software that are well-tested with the distribution release.

There is only a slight little problem (which might not be a problem at all) and that is the version of Git it installs. It is available in the main repository of Ubuntu and you can install it using the apt command like this: sudo apt install git
