[踩坑填坑] brew update报如下警告 Warning: No remote 'origin' in

[复制链接]
作者
n2n1   发布于2022-9-5 03:46:19 来自河北
这个是是git 的安全漏洞

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!
Already up-to-date.
执行brew -v 命令看看是不是有两个提示,你的 homebrew-core、homebrew-cask和homebrew-services目录 被git认为不是一个安全的目录,需要手动添加
git config --global --add safe.directory 你的homebrew-core路径
git config --global --add safe.directory 你的homebrew-cask路径
git config --global --add safe.directory 你的homebrew-services路径







我的错误:

Warning: No remote 'origin' in /usr/local/Homebrew/Library/Taps/homebrew/homebrew-services, skipping update!

终端运行
git config --global --add safe.directory /usr/local/Homebrew/Library/Taps/homebrew/homebrew-services

解决

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 创建账号

本版积分规则

Archiver|小黑屋|( 冀ICP备2021005463号 )

GMT+8, 2024-3-29 20:20 , Processed in 0.105970 second(s), 24 queries , Gzip On.

N2N1 It社区 n2n1.cn

Copyright © 2001-2021,MeiCheng.

快速回复 返回顶部 返回列表