• Home
  • Linux
  • Ubuntu
  • Debian
  • CentOS
  • Linux Commands
  • About Us
  • Donate
TecNStuff
Menu
  • Home
  • Linux
  • Ubuntu
  • Debian
  • CentOS
  • Linux Commands
  • About Us
  • Donate

How to Install Git on Debian 10 Linux

Written by Admin, Updated On December 22, 2019
debian, git
How To Install Git on Debian 10 Linux

Git is the most popular distributed version control system in the world. It used to track changes in source code for many open source and commercial projects. It allows to collaborate with programmers, revert to previous changes and create branches. In this tutorial, you will learn how to install Git on Debian 10 Buster.

Prerequisites#

You must have logged in with non-root user account with sudo privileges.

Install Git#

The Git package is available in the Debian’s default repositories. You can install Git using the apt package manager. There is also a alternate way to install latest version of Git from source. To install from apt manager is very simpler and we will use it in this article.

sudo apt update
sudo apt install git

On the completion of installation, you can verify by checking version:

git --version
git version 2.20.1

Configure Git#

Now your Git is installed and you need to configure it by setting up email address and username:

git config --global user.name "Your Name"
git config --global user.email "youremail@example.com"

Don’t forget to replace with your real name and email address.

You can check entered details by typing:

git config --list
user.name=Your Name
user.email=youremail@example.com

These settings are stored at ~/.gitconfig file and you can see content as below:

You can make other git configuration changes by using git config command or you can use text editor to make changes to ~/.gitconfig file manually.

Update Git#

Once the new release is available to standard Debian repositories, you can update the Git package using below command:

sudo apt update
sudo apt upgrade

Conclusion#

In this guide, we show you how to install Git on Debian 10 Buster. You can get more details about use of Git from Pro Git book.

If our content helps you, please consider buying us a coffee

Thank you for your support.

Share On
Share on Facebook
Share on Twitter
Share on Reddit
Share on Tumblr
 Previous Article How to Install Nginx on CentOS 8
Next Article   How to Extract (Unzip) Tar Gz File

Related Posts

  • How to Install Php 8 on Debian 10

    How to Install PHP 8 on Debian 10

    January 2, 2021
  • How to Install GIMP on Debian 10

    How to Install GIMP 2.10 on Debian 10

    December 27, 2020
  • How to Install Python 3.9 on Debian 10

    How to Install Python 3.9 on Debian 10

    December 25, 2020

Leave a Reply Cancel reply

Popular Posts

  • How to Install Python 3.9 on Debian 10
    How to Install Python 3.9 on Debian 10 December 25, 2020
  • How to Install Notepad++ on Debian 10
    How to Install Notepad++ on Debian 10 December 23, 2020
  • How to Install Php 8 on Debian 10
    How to Install PHP 8 on Debian 10 January 2, 2021
  • How to Install Python 3.9 on CentOS 8
    How to Install Python 3.9 on CentOS 8 December 31, 2020
  • How to Install Php 8 on Ubuntu 20.04
    How to Install PHP 8 on Ubuntu 20.04 December 28, 2020
© 2020 TecNStuff All rights reserved. This website is using and storing cookies on your browser. By using this website you agree our Privacy Policy.  Follow us -  Twitter | Facebook