Skip to content

Install Git

Git must be installed before you can create or clone repositories.

Download and run the installer from git-scm.com. The default options are suitable for most users.

Verify the installation in PowerShell or Command Prompt:

git --version

Install Git using your distribution's package manager:

# Debian / Ubuntu
sudo apt update
sudo apt install git

# Fedora
sudo dnf install git

Verify the installation:

git --version

Install Apple's command-line tools, which include Git:

xcode-select --install

Alternatively, install Git with Homebrew:

brew install git

Verify the installation:

git --version

Next step

Configure your author identity before creating commits: git config --global user.name and git config --global user.email.