brew update的时候出现以下错误:
在stack overflow上找到一个解决方法,链接:https://github.com/Homebrew/legacy-homebrew/issues/36262
使用到的命令如下:
$ sudo chown -R $USER /usr/local
$ cd /usr/local
$ git reset --hard origin/master
brew update 成功!
brew update的时候出现以下错误:
在stack overflow上找到一个解决方法,链接:https://github.com/Homebrew/legacy-homebrew/issues/36262
使用到的命令如下:
$ sudo chown -R $USER /usr/local
$ cd /usr/local
$ git reset --hard origin/master
brew update 成功!