[macOS] Install and update git through Homebrew in mac

You can refer to this article to install Homebrew on mac! Super detailed and super simple by hand! ! !

https://blog.csdn.net/m0_55644132/article/details/129006590?spm=1001.2014.3001.5502

install git

brew install git

Check the git version

git version

update git

brew upgrade git

reconnect to git

brew link git --overwrite

After the installation is complete, check the version and you will find that it is still the original version, which needs to be linked through the above command.

View the git installation path

$ which git
/usr/local/bin/git

Guess you like

Origin blog.csdn.net/m0_55644132/article/details/129006723