How to install Git Mac OS Mojave using Homebrew

Git is a distributed version-control system for tracking changes in source code during software development. To install Git on Mac OS follow below steps:

Step 1: Update Homebrew

$ brew update

Step 2: Install Git using brew

$ brew install git

Step 3: Check git is successfully install by typing either of below commands

$ which git
$ git --version
Mon, 08/31/2020 - 00:07

Authored by

Tarun Goswami, works as a Technical Lead at the well-known IT services company. With Over 11+ years of experience in Quality Assurance, he writes engaging and informative blogs in his spare time.