brew update error
$ brew update
error: Not a valid ref: refs/remotes/origin/master
fatal: ambiguous argument 'refs/remotes/origin/master': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
解决办法: 修改清华源命令:
$ cd "$(brew --repo)"
# zhushuyan @ bogon in /usr/local/Homebrew on git:stable o [6:39:27]
$ git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git
# zhushuyan @ bogon in /usr/local/Homebrew on git:stable o [6:39:36]
$ cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
# zhushuyan @ bogon in /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core on git:master o [6:39:42]
$ git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git