安装rabbitmq提示fatal: not in a git directory Error: Command failed with exit 128: git

1、出现的问题

brew install rabbitmq

fatal: not in a git directory Error: Command failed with exit 128: git,如下图所示请添加图片描述

2、解决方式

输入brew -v 查看信息
安装rabbitmq提示fatal: not in a git directory Error: Command failed with exit 128: git_第1张图片

分别之心下面两个命令

git config --global --add safe.directory /opt/homebrew/Library/Taps/homebrew/homebrew-core
git config --global --add safe.directory /opt/homebrew/Library/Taps/homebrew/homebrew-cask

然后再重新安装即可解决。

你可能感兴趣的:(git)