How to Install Git on Mac

How to Install Git on Mac

Easierdocs Git Install Article Image

Install Git with Homebrew

brew install git

Install Git with MacPorts

sudo port selfupdate
sudo port install git

Official installer package

Step 1 - Download Git installer

Download the latest version of Git for Mac from the official website.

Step 2 - Install the package

Open the DMG file you downloaded and double-click the package installer (.pkg) to start the installation process.

Follow the installation wizard:

  1. Click “Continue” on the introduction screen
  2. Read and accept the license agreement
  3. Choose the installation destination (typically Macintosh HD)
  4. Enter your administrator password when prompted
  5. Click “Install” to begin the installation

Step 3 - Verify the installation

Open Terminal and run:

git --version

If this outputs the current version, the installation was successful.

ℹ️
After installation, you may need to restart Terminal for the changes to take effect.
Last updated on