This article will show you how to install git in macOS
Prerequisites
Base on git official document, it uses brew command to install git on macOS, if you don’t have brew command available, open terminal app and run below commands
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Install git with brew
Run below command to install git
brew install git
Configure git global information
# config user name
git config --global user.name "FIRST_NAME LAST_NAME"
# config email address
git config --global user.email "MY_NAME@example.com"