How to Install Git on Debian 10

Install Git on Debian 10

In this article, we will have explained the necessary steps to install and configure Git on Debian 10. Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges. All the commands in this tutorial should be run as a non-root user.

Git is the most popular version control system nowadays. It helps to share and collaborate on software development projects. Git is mainly used for source code management.

Install Git on Debian

Step 1. The first command will update the package lists to ensure you get the latest version and dependencies.

Step 2. Install Docker on Debian 10.

The installation is pretty straightforward, just run the following commands as user with sudo privileges:

Confirm the installation and check the version executing the following command:


Step 3. Configuring Git.

First set the global user name for Git:

Secondly set global email for Git:

You can verify the changes with the following command:

The configuration settings are stored in the ~/.gitconfig file:

Congratulation, you have learned how to install and configure Git on Debian 10 Buster. If you have any question, please leave a comment below.