How to install and Configure Git on Ubuntu 20.04
Introduction
Git is an open source distributed version control system designed to handle the projects with speed, efficiency and high scalability. Git is actively maintained open source project originally developed in 2005 by Linus Torvalds. It allows you to keep the track of the changes made to a project over a time. Git works by recording changes you make to a project, storing those changes, then allowing you to refer them as needed.
Install Git
Open the terminal, type the following command and hit enter.
$ sudo apt-get install git
Confirm Successful Installation
We can confirm the successful installation of Git by running the following command.
$ git --version
Output
git version 2.25.1
Minimal Git Configuration
We’re going to use git config
command to set the values required for configuration.
$ git config --global user.name "Your Name"
$ git config --global user.email "Your Email Address"
We can pass --list
parameter to the git config
command, to list all the known configuration options at the global level.
$ git config --global --list
Output
user.name="Your Name"
user.email="Your Email Address"
You can find the git configuration file in the home directory and see the content of that file by opening file in editor.
$ gedit ~/.gitconfig
That’s all we need to do to in order to configure Git properly.
Thank you for reading!!!