Install Git on Ubuntu Linux


In this tutorial, we’ll be going through the steps of installing the Git tool on Ubuntu Server.

Environment: Ubuntu Linux Server LTS.

Git Install

$ sudo apt install git-all


Git Install on Linux

Git repository

To initialize a local git repository, type the following command:

$ git init


We can the version from the terminal prompt if git is working after the install.

Check the path of the git repository. We should have a .git repository created in the path. Enable the hidden files feature.


Git Repository Linux