1、brew install git
2、git --version
查看版本信息
$ git version
git version 2.23.0
brew link --overwrite git
Linking /usr/local/Cellar/git/2.33.0... 212 symlinks created.
1、brew install git
2、git --version
查看版本信息
$ git version
git version 2.23.0
brew link --overwrite git
Linking /usr/local/Cellar/git/2.33.0... 212 symlinks created.