Skip to content

Instantly share code, notes, and snippets.

@da-n
Created May 29, 2014 13:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save da-n/3e3076190f1ba9eb095d to your computer and use it in GitHub Desktop.
Save da-n/3e3076190f1ba9eb095d to your computer and use it in GitHub Desktop.
Brew update failed
$ cd $(brew --prefix)
$ git reset --hard HEAD
$ brew update
# if that fails, try this
$ cd $(brew --prefix)
$ sudo chown -R dan:staff $(brew --prefix)
$ rm Library/Formula/argp-standalone.rb
$ rm Library/Formula/cocot.rb
$ git fetch origin
$ 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