为什么我在更新自制软件时告诉'cd'? [英] Why am I told to 'cd' when updating Homebrew?

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

问题描述

由于我最新的Homebrew更新版本(1.0.0版本),而不是仅仅看到

Since my latest update of Homebrew (to 1.0.0), instead of just seeing

Checking out v1.0.1 in /usr/local/Homebrew...

当我 brew更新 brew upgrade --all 我现在看到

Checking out v1.0.1 in /usr/local/Homebrew...
To checkout v1.0.1 in /usr/local/Homebrew run:
  'cd /usr/local/Homebrew && git checkout v1.0.1

这是我应该做的一个错误吗?这里发生了什么?更新对我来说没有失败吗?

Is that an error I should do something about? What's going on here? Are updates no failing for me?

推荐答案

我有同样的问题。在这个问题中找到了解决方案,这非常类似于你:

I had the same problem. Found the solution in this question, which is very similar to yours:

cd $(brew --prefix)/Homebrew && git fetch && git reset --hard origin/master

它似乎是由前缀和储存库目录中的自制软件。

It seemed to be caused by a difference in "prefix" and "repository" directories for homebrew.

这篇关于为什么我在更新自制软件时告诉'cd'?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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