brew install时,报错:
No remote 'origin' in /opt/homebrew/Library/Taps/homebrew/homebrew-services, skipping update!
【macOS】Git 2.35.2修复安全漏洞导致brew无法正常使用解决方案 - 码农教程
添加安全目录homebrew-core、homebrew-cask和homebrew-services
# 添加
git config --global --list
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 config --global --add safe.directory /opt/homebrew/Library/Taps/homebrew/homebrew-services
安装brew install超时,就更换源
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
选择序号3
然和选择brew Install的国内镜像序号。
brew config
更换镜像后:
更换镜像前: