How do I update Homebrew?

andrewpthorp picture andrewpthorp · May 17, 2011 · Viewed 176.3k times · Source

When I ran:

brew update

I got a message saying it initialized an empty repository in /usr/local/.git/, then I got this error:

Screenshot

Answer

corysimmons picture corysimmons · Mar 12, 2014
  • cd /usr/local
  • git status
  • Discard all the changes (unless you actually want to try to commit to Homebrew - you probably don't)
  • git status til it's clean
  • brew update