版权属于:
Ginkgo
本文链接:
https://www.imao2.com/article/89.html(转载时请注明本文出处及文章链接)
作品采用:
此文转自: https://www.cnblogs.com/tp0829/p/Homebrew.html
$ cd "$(brew --repo)"
$ git remote set-url origin https://mirrors.ustc.edu.cn/brew.git
"$(brew --repo)"是用来自动指向Homebrew的目录的.
参考Homebrew源使用帮助.
$ cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
$ git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
$ cd "$(brew --repo)"/Library/Taps/homebrew/homebrew-cask
$ git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git