Adapted from Atlassian Tutorial.

Install Git on Mac OS X

If you have XCode, Git could already be installed. To check it out, open up a terminal and enter git --version

$ git --version
git version 2.24.1 (Apple Git-126)

Git for Mac Installer

  1. Download the latest Git for Mac installer.

  2. Follow the prompts to install Git.

  3. Open a terminal and verify the installation was successful by typing git --version:

     $ git --version
     git version 2.24.1 (Apple Git-126)
    

Install Git with Homebrew

If you have installed Homebrew to manage packages on OS X, you can follow these instructions to install Git:

  1. Open your terminal and install Git using Homebrew:

     $ brew install git
    
  2. Verify the installation was successful by typing which git --version:

     $ git --version
     git version 2.24.1 (Apple Git-126)
    

Install Git on Windows

Git for Windows stand-alone installer

  1. Download the latest Git for Windows installer.

  2. When you’ve successfully started the installer, you should see the Git Setup wizard screen. Follow the Next and Finish prompts to complete the installation. The default options are pretty sensible for most users.

  3. Open a Command Prompt (or Git Bash if during installation you selected not to use Git from the Windows Command Prompt).

  4. Verify the installation was successful by typing which git --version:

     $ git --version
     git version 2.24.1 (Apple Git-126)