目 录CONTENT

文章目录

【macOS】brew update无法正确使用解决方案(Warning: No remote 'origin' in…, skipping update! )

Sir丶雨轩
2023-10-24 / 0 评论 / 0 点赞 / 223 阅读 / 0 字 / 正在检测是否收录...

✨brew update无法正常使用

报错提示如下:

Warning: No remote 'origin' in /opt/homebrew/Library/Taps/homebrew/homebrew-cask, skipping update!
Warning: No remote 'origin' in /opt/homebrew/Library/Taps/homebrew/homebrew-core, skipping update!
Warning: No remote 'origin' in /opt/homebrew/Library/Taps/homebrew/homebrew-services, skipping update!

✨解决方案

运行如下命令添加 Git 信任目录homebrew-corehomebrew-caskhomebrew-services

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

0
广告 广告

评论区