🪟 For Windows:

  1. Go to the official Git website:

  2. Download the Windows installer:

  3. Run the installer:

  4. Install Git:

  5. Finish and launch:

🍎 For macOS:

Option 1: Install via Xcode Command Line Tools (easiest)

  1. Open Terminal.

  2. Type:

    bash
    git --version
    
  3. If Git is not installed, you'll be prompted to install the Xcode Command Line Tools. Click Install.

Option 2: Install using Homebrew

  1. Open Terminal.

  2. Run:

    bash
    brew install git
    
  3. After installation, check with:

    bash
    git --version