Skip to main content

Installing Git on Linux

A step‑by‑step walkthrough to install Git on Linux - showing not just the setup, but why it’s essential for every developer’s creative workflow.

· By Shubham Sihasane · 2 min read

Git was born in the world of Linux, created to manage the complexity of the Linux kernel itself. That makes installing Git on Ubuntu or other Linux distributions feel less like adding a tool and more like awakening something native to the system.

For developers, Git is the notebook that remembers every experiment, every branch, and every collaboration.

This guide will show you how to install Git on Linux step‑by‑step, making sure your machine is ready to capture your ideas and connect you to the global developer community.


✅ Step 1: Check if Git is Already Installed

  • Open Terminal and type:
git --version 
  • If you see a version number (e.g. git version 2.52.0), Gt is already installed.
  • If not, let’s install it.

✅ Step 2: Choose Your Installation Path

1. Using APT (Beginner-Friendly, Default Way)

Why: Safe, stable, and easy for general users.

Ubuntu’s package manager makes installation simple:

sudo apt update
sudo apt install git
  • This fetches Git from Ubuntu’s official repositories.
2. Install Latest Git (Developer’s Choice)

Why: Ensures you’re running the newest Git release with cutting‑edge improvements.

Sometimes developers want the latest Git features beyond Ubuntu’s default version.

  • Add the Git PPA (Personal Package Archive):
sudo add-apt-repository ppa:git-core/ppa
sudo apt update
sudo apt install git
3. Build from Source (Advanced Users)

Why: Lets you compile Git exactly how you want, but requires more effort.

For ultimate control:

sudo apt update
sudo apt install make libssl-dev libcurl4-gnutls-dev libexpat1-dev gettext unzip
wget <https://mirrors.edge.kernel.org/pub/software/scm/git/git-><latest-version>.tar.gz
tar -xvf git-<latest-version>.tar.gz
cd git-<latest-version>
make prefix=/usr/local all
sudo make prefix=/usr/local install

✅ Step 3: Verify Installation

  • Open Terminal and type:
git --version
  • If you see something like git version 2.52.0, congratulations 🎉 your magical notebook is ready!

✅ Step 4: Initial Setup (Your Signature in the Notebook)

  • Once Git is installed, you need to tell it who you are. This is like signing every page of your notebook.
git config --global user.name "Your Name"
git config --global user.email "your@email.com"
  • Check your git configuration settings:
git config --list

🍎 Wrapping Up:

With Git installed on Linux, you’re not just setting up software - you’re activating the system’s natural rhythm of innovation. Every commit becomes a page in your story, every branch a safe space to explore, and every merge a collaboration that moves projects forward.

From solo experiments to open‑source contributions, Git ensures your work is safe, traceable, and impactful. Installing Git on Linux is the first step toward joining the bigger narrative of creativity and teamwork that powers the modern world of software. 🚀✨

About the author

Shubham Sihasane Shubham Sihasane
Updated on Dec 13, 2025