Error: Command failed with exit 128: git

Mac安装nginx时报错。
解决方案:

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,macos,xcode)