我如何更新自制软件? [英] How do I update Homebrew?

查看:101
本文介绍了我如何更新自制软件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我跑完时:

When I ran:

brew update

我收到一条消息,说它在 /usr/local/.git / 中初始化了一个空的存储库,然后我得到了这个错误:

I got a message saying it initialized an empty repository in /usr/local/.git/, then I got this error:

推荐答案


  • cd / usr / local
  • b
  • git status

  • 放弃所有更改(除非您真的想尝试提交自制软件 - t)

  • git status 直至干净

  • brew更新

    • cd /usr/local
    • git status
    • Discard all the changes (unless you actually want to try to commit to Homebrew - you probably don't)
    • git status til it's clean
    • brew update
    • 这篇关于我如何更新自制软件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆