In this post, we are sharing a very quick and simple steps through which you can always install latest Git package in Ubuntu Operating System. As a DevOps Engineer, the usage of git is very high in our work. Without git, the Devops work is almost unimaginable now a days. So git in your machines should also be latest and stable version.
Git is the distributed version control system. It is free and Open Source tool. The Old school people can understand, if we say “There was a SVN”. Even we use the git with Jenkins also for DevOps work.
Why we are writing this post ?
So when we run apt command to install git from de-facto repos. There are the chances that it will offer the older version.
When we use the given below methods, it not only gives the latest version but also helpful to update with new version which pull it from the repo which we are going to update in next step.
Let’s go straight to the point now.
Install Git On Ubuntu
For installing the git latest version in Ubuntu Operating System, run the following commands.
sudo add-apt-repository ppa:git-core/ppa
You guys are smart, do not hesitate to press ENTER if ask for on Terminal when you run above command.
Here, we go now next.
sudo apt install git -y
Now check the version by simply typing the command.
git --version
That’s it done. Now your Ubuntu Operating System has latest git version.
Here is the Git Project URL if you are interested to explore.