Skip to main content

Git on Linux (Ubuntu)

Installation

Git is usually already installed by the OS.

If needed, you can install or update it using:

sudo apt update && sudo apt install git

Verify Git Installation

After installation, check that Git is correctly installed:

git --version

You should see the installed Git version, e.g., git version 2.48.1.