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 a Debian 9 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 quickly deploy your cloud servers.

Once you have signed up, log into your Cloudwafer Client Area and deploy your Cloudwafer cloud server.

You can also read our guide on Installing Git on Ubuntu 16/18 for more information

You can also read our guide on Installing Git on CentOS 7 for more information

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

Step 1: Install Git from APT
The easiest and the recommended way to install Git is by using the APT package management tool from Debian’s default repositories. Issue the command as follows:

sudo apt install git

Step 2: Check Git Version
After our installation, we can issue the command below to check the version of Git installed

git --version