Perform the following steps to install Git on Linux:
- Installing Git on Linux is simple. In this section, we will install Git on Ubuntu (16.04.x).
- Log in to your Ubuntu machine. Ensure that you have admin privileges.
- Open a terminal in case you are using the GUI.
- Execute the following commands in sequence:
sudo apt-get updatesudo apt-get install git
- Execute the following command to check the Git installation:
git --version
- You should get the following result:
git version 2.15.1.windows.2