Start with the Git version

git --version
Copy the code

See the point

which git
Copy the code

Brew required for upgrade

brew install git
Copy the code

Apple Silicon’s words are executed

arch -x86_64 brew install git
Copy the code

then

export PATH="/usr/local/bin:${PATH}" 
Copy the code
source ~/.bash_profile
Copy the code

Then look at point

which git
Copy the code

Now look at the Git version

git --version
Copy the code