Fix brew update error
When run brew update
, I got an error:
$ brew update
error: The following untracked working tree files would be overwritten by merge:
Library/Formula/tcpstat.rb
Library/Formula/titlecase.rb
Please move or remove them before you can merge.
Aborting
Error: Failure while executing: git pull --ff --no-rebase --quiet origin refs/heads/master:refs/remotes/origin/master
By below steps, I resolved the issue:
$ cd `brew --prefix`
$ git fetch origin
$ git reset --hard origin/master
Checking out files: 100% (1704/1704), done.
HEAD is now at 4b0be8a openexr: fix build on 32-bit targets
$ brew update
To restore the stashed changes to /usr/local run:
`cd /usr/local && git stash pop`
Already up-to-date.
Author And Source
この問題について(Fix brew update error), 我々は、より多くの情報をここで見つけました https://qiita.com/liubin/items/b9f27e75d6a49cc73f2f著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .