Last active
August 29, 2015 14:23
-
-
Save cdolek/d9a795b0eeaf03c62bb4 to your computer and use it in GitHub Desktop.
fix broken homebrew
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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