Thursday, November 28, 2013

Brew update gives error: Your local changes to the following files would be overwritten by merge:

This happens if your brew repository has become corrupt for some reason or permissions have changed and brew is unable to update.

To fix run the following from a terminal window.

cd `brew --prefix`
git remote add origin https://github.com/mxcl/homebrew.git
git fetch origin
git reset --hard origin/master

No comments:

Post a Comment