How to install Git Mac OS Mojave using Homebrew

Profile picture for user devraj

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