How To Install Git on Ubuntu 18.04 [Quickstart]


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.

Git Logo

Step 1 — Update Default Packages

Logged into your Ubuntu 18.04 as a sudo non-root user, first update your default packages.

$ sudo apt update

Step 2 — Install Git

$ apt install git

Step 3 — Confirm Successful Installation

To check whether your git is installed or not you can check by running the command below and you’ll get the output along with that:

$ git --version


git version 2.17.1

Step 4— Set Up Git

Voilla! Now we can proceed for more further configuration.

$ git config --global "Your Name"
$ git config --global ""

If you need to edit this file, you can use a text editor such as nano, vim, gedit or whatever you like:

gedit ~/.gitconfig

~/.gitconfig contents

name = Your Name
email =

That’s it for now… this is just a quickstart, thank you for reading

Read my latest blog…

Software Engineer