Install Git on Linux

opeolluwa

ADEOYE ADEFEMI OPEOLUWA

Posted on December 10, 2021

Install Git on Linux

In the last two parts of these series, we studied in detail, how to install git on Windows operating system and Mac.

Herein, we'll get up and running with git on Linux.

Installation of the basic Git tools on Linux can be done via a binary installer, you can generally do so through the package management tool that comes with your distribution. If you’re on Fedora (or any closely-related RPM-based distribution, such as RHEL or CentOS), you can use dnf:

`sudo dnf install git-all

`

If you're a Debian-based system such as Ubuntu, you can use apt, the default package manager.

sudo apt install git-all

If you are not sure which distro your machine 💻 is,

  1. Search for terminal
  2. Launch the terminal
  3. Enter the following command in your terminal bash git --version . This will prompt for installation of git and provide you with command to do this. 4. Type in the command provided in step 3 above. That should get you up and running with git.

To verify your installation, run

git --version


This should give return the version of git currently installed on your machine
verify git installation

💖 💪 🙅 🚩
opeolluwa
ADEOYE ADEFEMI OPEOLUWA

Posted on December 10, 2021

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Git Demystified
beginners Git Demystified

April 5, 2023

Install Git on Linux
beginners Install Git on Linux

December 10, 2021

Installing git on Mac
beginners Installing git on Mac

December 9, 2021

Installing git on windows
beginners Installing git on windows

December 8, 2021

GitHub tips for beginners
git GitHub tips for beginners

February 2, 2021