How to install Git on Ubuntu 18.04 / Linux Mint 19?

0
30
Some graphical clients for git
Some graphical clients for git

Developers must use all available tools to make quality software. Some of these tools do not go directly to the software or the code but to its management. For example, version control is important to ensure that changes are made to the code in an orderly fashion. In this segment, Git seems to be the most logical alternative for this task. So in this post, we will show you how to install Git on Ubuntu 18.04 and Linux Mint 19.

Git is a free and open source distributed version control system. It is perhaps the most popular within the branch as millions of developers use it to control software versions. Ease of use, community support, and efficient version control are the main features of Git. In addition, it is open source and free, which makes it ideal for all projects.

Of course, Git is available for almost any Linux distribution. It also has versions for Windows or MacOS. So no matter what platform you develop on, you will always have the advantages of using Git.

Install Git on Ubuntu 18.04 / Linux Mint 19

As I mentioned earlier, Git is available for many Linux distributions. And Ubuntu is no exception. For Ubuntu and Linux Mint we have two different ways to install Git.

First, Git is in the official Ubuntu and Linux Mint repositories. However, the available version is somewhat outdated and the development of Git is quite active. Installing Git in this way is quite simple but will deprive you of having the latest version available with all its advantages.

So, open a terminal and run:

:~$ sudo apt install git
1.- Install Git from the main repositories
1.- Install Git from the main repositories

Then, check the installed version.

:~$ git --version
2.- Git version
2.- Git version

As we can see, the version that is in the official repositories is 2.17. However, the latest version available is 2.21 at the time of writing this post.

Fortunately, there is a PPA for Ubuntu and Linux Mint that we can use to install the latest version of Git very easily.

So, open a terminal and run:

:~$ sudo add-apt-repository ppa:git-core/ppa
3.- Adding the external repository
3.- Adding the external repository

Then, refresh the APT cache.

:~$ sudo apt update

If you already have it installed, run this command.

:~$ sudo apt upgrade

Or, if you do not have it installed.

:~$ sudo apt install git

After that, check the installed version.

:~$ git --version
4.- Git latest version installed
4.- Git latest version installed

So we can install Git on Ubuntu 18.04 and Linux Mint 19 using the PPA of the development team.

Conclusion

Git is quite a reference when it comes to version control. Many developers use it for their daily work and offer a great guarantee for it. In addition, installing it is quite simple and is within everyone’s reach.

Please share this post with your friends.

LEAVE A REPLY

Please enter your comment!
Please enter your name here