侧边栏壁纸
  • 累计撰写 57 篇文章
  • 累计创建 98 个标签
  • 累计收到 5 条评论

目 录CONTENT

文章目录

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

Sir丶雨轩
2023-10-24 / 0 评论 / 0 点赞 / 114 阅读 / 951 字

✨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

评论区