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

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Anil Loutombam

Anil Loutombam

Software Engineer

More from Medium

Mule4- Custom Configuration Properties Provider AWS-SECRETS MANAGER

Git Undo Scenarios

Docker -> How to get Docker Desktop running on Win 10 while fixing The attempted operation is not…