当我这么做的时候...

brew update

我一直收到这个错误信息...

From https://github.com/mxcl/homebrew
25c0495..af1d9f1  master     -> origin/master
error: Your local changes to the following files would be overwritten by merge: 
       Library/Formula/postgresql.rb
Please, commit your changes or stash them before you can merge.

我想找到文件,并签出最新版本,但我甚至找不到"公式"文件夹.隐马尔可夫模型..所以我卸载了postgresql并再次try "brew更新",但遇到了相同的错误.

如果有人能帮我,我会很感激的?

推荐答案

cd `brew --repository`
git reset --hard HEAD
brew update

有时上述方法不起作用.那样的话,你可以

cd `brew --repository`
git reset --hard origin/master
brew update

Postgresql相关问答推荐

如何高效地将行聚合到数组中,同时保留`NULL`来指示丢失的数据?

分区可以用于postgres中的同类查询吗?

无法在PostgreSQL中创建方案和表

如何使用 Grafana 测量 PostgreSQL 中的复制

Postgres 生成的列不是不可变的

gorm 不生成字符串列

Rails Migration 使用转换将字符串转换为整数

在 PostgreSQL 中返回插入的行

Docker - 判断 postgres 是否准备好

Java - 日期保存为前一天

无法登录 PostgreSQL 数据库

如何将1 天 01:30:00等间隔转换为25:30:00?

如何使用字符串作为 PostgreSQL 咨询锁的键?

postgresql:致命:password authentication failed for user "douglas"

向 Postgres 整数数组添加值

如何将 PostgreSQL 查询输出导出到 csv 文件

在 PostgreSQL 中 Select 进入临时表?

查询 JSON 列中的数组元素

Postgresql滚动删除旧行?

如何在 JPA 中使用 Postgres JSONB 数据类型?