Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

homebrew update irritating error message [closed]

When I do ...

brew update

I keep getting this error message ...

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.

I wanted to find the file, and checkout the latest version but I can't even find the folder 'Formula'. Hmm.. So I uninstall postgresql and tried 'brew update' again but encounter same error.

Appreciate if anyone can help me out ?

like image 480
John Lee Avatar asked Apr 01 '12 16:04

John Lee


1 Answers

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

Sometimes the above doesn't work. In that case, do

cd `brew --repository`
git reset --hard origin/master
brew update
like image 197
4 revs, 3 users 76% Avatar answered Oct 15 '22 17:10

4 revs, 3 users 76%