How to install Git on Debian 9
Installing Git on Debian
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. In this tutorial, you are going to learn how to install Git on Debian 9.
Before you start installing Git on Debian 9. You must have the non-root user account on your Server or Desktop with sudo privileges.
1. Install Git on Debian
To install Git in Debian you need to update the apt package manager index then you will install it in Debian. After that, you will confirm installation.
To update apt package manager index type following in the terminal
sudo apt update
Now install Git in Debian by typing
sudo apt install git
Confirm the installation and check the version executing the following command
The output should be:
Output: git version 2.17.1
2. Setting Up Git
To prevent warning every time you should configure it perfectly by using your Git information
First set the global username for Git
git config --global user.name "User Name"
Secondly set global email for Git
git config --global user.email "[email protected]"
You can also change above configuration by editing .gitconfig file. To edit gitconfig file type
Edit above file by setting Name and Email.
Here we have successfully learned how to install Git on Debian 9 and you have also learned setting up Git to start working on the system. If You have any queries regarding this please don’t forget to comment below.
How to Install Apache Tomcat 9 on Ubuntu 18.04
How to Install Apache Tomcat 9 on CentOS 7
How to Add Swap Space on CentOS 8
How to Install MariaDB 10 on Linux Mint 19
How to Install CMake on CentOS 8
How to Install Redis on Ubuntu 18.04
How to Install Postman on Manjaro 18
How to Disable SELinux on CentOS 8
How to install XAMPP on Debian 9
How to install Krita on Debian 9
How to Setup Cron Jobs on Fedora
How to Install PyCharm on CentOS 7