Friday, February 03, 2017

brew update fails

$ brew update

error: Your local changes to the following files would be overwritten by merge:
Please, commit your changes or stash them before you can merge.
Error: Failure while executing: git pull -q origin refs/heads/master:refs/remotes/origin/master


cd `brew --prefix`
git remote add origin
git fetch origin
git reset --hard origin/master