Git is a distributed version control system for tracking changes in source code during software development. It is designed for coordinating work among programmers, but it can be used to track changes in any set of files. Its goals include speed, data integrity, and support for distributed, non-linear workflows.
In this guide, we will install Git on an Ubuntu 16.04/18.04 server.
Deploying your cloud server
If you have not already registered with Cloudwafer, you should begin by getting signed up. Take a moment to create an account after which you can easily deploy your own cloud servers.
Updating System Packages
It is always recommended that you update the system to the latest packages before beginning any major installations. This is done with the command below:
sudo apt-get update && sudo apt-get upgrade
You can also read our guide on Installing Git on CentOS 7
Step 1: Add Git Repository
Install the commands below to add the GIT repository to your system:
sudo add-apt-repository ppa:git-core/ppa
Step 2: Install Git
Update your apt repository using the command below followed by another command to install git as shown below:
sudo apt-get update sudo apt-get install git
Step 3: Check Git Version
After our installation, we can issue the command below to check the version of Git installed