homebrew安装git

发布时间 2023-08-16 15:06:07作者: 江南烟雨行舟

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