homebrew 安装 git
如果出现以下错误:
Warning: /opt/homebrew/bin is not in your PATH.
在 ~/.zshrc
文件中加入,并执行 source ~/.zshrc
:
export PATH=/opt/homebrew/bin:$PATH
通过下面的命令替换系统的命令:
brew unlink git && brew link git
如果出现以下错误:
Warning: /opt/homebrew/bin is not in your PATH.
在 ~/.zshrc
文件中加入,并执行 source ~/.zshrc
:
export PATH=/opt/homebrew/bin:$PATH
通过下面的命令替换系统的命令:
brew unlink git && brew link git