Installation

Installing Git

On macOS

  1. Using Homebrew:

    brew install git
    
  2. Using Xcode Command Line Tools:

    xcode-select --install
    
  3. Using MacPorts:

    sudo port install git
    

On Linux

  1. Debian/Ubuntu:

    sudo apt-get update
    sudo apt-get install git
    
  2. Fedora:

    sudo dnf install git
    
  3. Arch Linux:

    sudo pacman -S git
    
  4. OpenSUSE:

    sudo zypper install git
    

On Windows

  1. Using Git for Windows:

    • Download the installer from git-scm.com.
    • Run the installer and follow the instructions.
  2. Using Chocolatey:

    choco install git
    
  3. Using Scoop:

    scoop install git
    

Verifying the Installation

After installation, you can verify the installation by running:

git -v

Or

git --version

If Git is installed, it should show something like git version X.Y.