MacOSX homebrew update error

Share on TumblrShare on FacebookShare on Google+Tweet about this on Twitter

MacOSXで久しぶりにhomebrewをアップデートしようとして
$brew update
したら以下のエラー。

Error: Failed while executing git pull origin refs/heads/master:refs/remotes/origin/master

git pullが出来ない、と。
試行錯誤して以下の対応で直った

shin$ cd /usr/local/
shin$ git add .
shin$ git stash
Saved working directory and index state WIP on master: a0b940a Check Cellar can be made before installing stuff
HEAD is now at a0b940a Check Cellar can be made before installing stuff
shin$ git reset --hard
HEAD is now at a0b940a Check Cellar can be made before installing stuff
shin$ brew update
Updated Homebrew from a0b940ac to e562953f.

Share on TumblrShare on FacebookShare on Google+Tweet about this on Twitter

Comments

comments