Skip to content

Instantly share code, notes, and snippets.

@cdolek
Last active August 29, 2015 14:23
Show Gist options
  • Save cdolek/d9a795b0eeaf03c62bb4 to your computer and use it in GitHub Desktop.
Save cdolek/d9a795b0eeaf03c62bb4 to your computer and use it in GitHub Desktop.
fix broken homebrew
# PROBLEM ****************************************************************************
error: Your local changes to the following files would be overwritten by merge:
Library/Formula/node.rb
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 BELOW -------------------------
cd $(brew --repository)
sudo chown -R $USER .
git reset --hard origin/master
brew update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment