brew updateのエラー対処
brew updateしたら、git関係でこんなエラーが
?? Library/Homebrew/utils/git.rb error: insufficient permission for adding an object to repository database .git/objects fatal: git-write-tree: error building trees Cannot save the current worktree state Error: Failure while executing: git stash save --include-untracked --quiet
治し方
$ cd $(brew --prefix)
$ sudo git fetch origin
$ sudo git reset --hard origin/master
brewがある場所に移動して、 fetchして、ローカルリポジトリをリモートの最新で上書きした。
で、brew updateでいけるはず。