cd /usr/localgit statusgit status til it's cleanbrew updateThe right way to solve this is to enter:
$ cd "$(brew --repo)" && git fetch && git reset --hard origin/master && brew update
Found at http://discourse.brew.sh/t/how-to-upgrade-brew-stuck-on-0-9-9/33.
Just prefix your install command with , like this:HOMEBREW_NO_AUTO_UPDATE=1
HOMEBREW_NO_AUTO_UPDATE=1 brew install somepackage
Source: brew manpage