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

1. Problems that arise

brew install rabbitmq

fatal: not in a git directory Error: Command failed with exit 128: git, as shown belowPlease add image description

2. Solution

Enter brew -vView information
Insert image description here

Execute the following two commands respectively

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

Then reinstall to solve the problem.

Guess you like

Origin blog.csdn.net/qq_36151389/article/details/132920891