Setup Git for Mac
Option 1- HomeBrew ( Recommend )
Install Homebrew ( Mac User ) - Homebrew
Execute the following command inside terminal
The script will download homebrew and install in your mac environment. Once the installation is done, run the following command in your terminal to install git
Then check the Git version to verify the installation
Option 2 - Install Git Using Xcode
If terminal is prefer, we can use Xcode to install command-line tools which includes Git in the package. Run the following command to install
Once the installation is done, run the command below to verify the installation
Option 3 - Install Git with Installer
Download git installer from here ( https://git-scm.com/downloads ).
Leave all the default setting for git installer.
Confirm once again by clicking Install Software.
Once the installation is done, run the command below to verify the installation.
Last updated
Was this helpful?