• 当前位置: 首 页 > 教育百科 > 学历/技能 > 正文

    brew update报如下警告,且不能安装和更新,可以这样解决

    :2022年07月03日
    CSDN

    安装软件提示:fatal: not in a git directoryError: Command failed with exit 128: git➜  ~ brew updateWarning: No remote 'origin' in /opt/homebrew/Library/Taps/homebrew/homebrew...

    安装软件提示:

    fatal: not in a git directory

    Error: Command failed with exit 128: git

    ➜  ~ 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!

    Xcode在2022.05.21更新之后修改了git,,这三个目录被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路径
    ————————————————
    版权声明:本文为CSDN博主「分享点」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
    原文链接:https://blog.csdn.net/qq_20349639/article/details/125069418

    [编辑:王振袢 &发表于江苏]
    [我要纠错]

    来源:本文内容搜集或转自各大网络平台,并已注明来源、出处,如果转载侵犯您的版权或非授权发布,请联系小编,我们会及时审核处理。
    声明:江苏教育黄页对文中观点保持中立,对所包含内容的准确性、可靠性或者完整性不提供任何明示或暗示的保证,不对文章观点负责,仅作分享之用,文章版权及插图属于原作者。

    关键词: 安装 软件 提示 fatal directoryError
    有价值
    0
    无价值
    0
    猜您喜欢
    最热文章

    暂不支持手机端,请登录电脑端访问

    正在加载验证码......

    请先完成验证