homebrew查看源配置

homebrew的配置分成三个目录,分别是brew(brew --repo)、homebrew/core(brew --repo homebrew/core),homebrew/cask(brew --repo homebrew/cask),在目录中可以通过git remote get-url origin来查看当前的源的URL,可以通过以下三个命令设置为默认值,最后不要忘记了更新哦~

git -C "$(brew --repo)" remote set-url origin https://github.com/Homebrew/brew.git

git -C "$(brew --repo homebrew/core)" remote set-url origin https://github.com/Homebrew/homebrew-core.git

git -C "$(brew --repo homebrew/cask)" remote set-url origin https://github.com/Homebrew/homebrew-cask.git

brew update

发表评论

电子邮件地址不会被公开。 必填项已用*标注