upgrade git mac code example
Example 1: git update to latest version mac
brew install git
Example 2: how to install and update git mac terminal
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install git
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"