Skip to content

Instantly share code, notes, and snippets.

@da-n
Created March 27, 2013 00:08
Show Gist options
  • Save da-n/5250477 to your computer and use it in GitHub Desktop.
Save da-n/5250477 to your computer and use it in GitHub Desktop.

Updating homebrew fails

$ brew update

Error such as:

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

Fix is to reset the changes

$ cd /usr/local && sudo git reset --hard FETCH_HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment