美文网首页shell
使用homebrew 的时候失败fatal: not in a

使用homebrew 的时候失败fatal: not in a

作者: Way_Kwok_Chu | 来源:发表于2022-06-10 23:43 被阅读0次

执行brew -v 命令看看是不是有两个提示,你的 homebrew-core和homebrew-cask目录 被git认为不是一个安全的目录,需要手动添加

git config --global --add safe.directory 你的homebrew-core路径
git config --global --add safe.directory 你的homebrew-cask路径

相关文章

网友评论

    本文标题:使用homebrew 的时候失败fatal: not in a

    本文链接:https://www.haomeiwen.com/subject/rvlimrtx.html