Skip to content

Instantly share code, notes, and snippets.

@shinyay
Created June 8, 2013 18:43
Show Gist options
  • Select an option

  • Save shinyay/5736183 to your computer and use it in GitHub Desktop.

Select an option

Save shinyay/5736183 to your computer and use it in GitHub Desktop.
Error occured by brew update on OSX error: The following untracked working tree files would be overwritten by merge: Library/Formula/libarchive.rb
$ brew update
error: The following untracked working tree files would be overwritten by merge:
Library/Formula/libarchive.rb
Please move or remove them before you can merge.
Aborting
Error: Failure while executing: git pull -q origin refs/heads/master:refs/remotes/origin/master
# I deal with the error as follows
$ cd /usr/local/Library/Formula
$ git reset --hard FETCH_HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment