brew updateでコケる。The following untracked working tree files would be overwritten by merge:
brew updateしたときに、なんかエラーがでたのでその解決法をメモ。
% brew update error: The following untracked working tree files would be overwritten by merge: Library/Formula/cocot.rb Library/Formula/redland.rb Please move or remove them before you can merge. Aborting Updating 2f5248f..4dc1861 Error: Failed while executing git pull origin refs/heads/master:refs/remotes/origin/master
トラックされていないワーキングツリーのファイルに変更があったみたいなので、該当するファイルをリネームするか移すかすればいい。
今回の場合、インストールしていないパッケージだったので削除した。
% rm -f /usr/local/Library/Formula/cocot.rb % rm -f /usr/local/Library/Formula/redland.rb
これでおk
% brew update