Step 1: Check if GIT is already installed in your machine
Open Terminal and run below command
git --version
Step 2: Install GIT from https://git-scm.com/downloads
Install GIT with HomeBrew
Make sure you have HomeBrew installed on your machine
Open Terminal and run below command
brew -v
brew install git
Step 3: Make sure the installation is complete
git --version