install

Linux (Debian/Ubuntu):

sudo apt update
sudo apt install git

macOS:

You can use Homebrew:

brew install git

Or install Xcode Command Line Tools (which includes Git):

xcode-select --install

Windows:

  • Go to GIT

  • Download the Windows installer.

  • Run the installer and follow the setup steps.

  • After installation, open Git Bash or use Git in your terminal or any IDE.

Verify Installation

After installing Git, open your terminal and run:

git --version

Last updated