Macbook brew 安装软件 一直updating Homebrew

在用brew安装新的软件的时候一直出现:git

Updating Homebrew...

主要是由于它试图在链接国外的源,bash

改为国内的源就行了:url

#替换brew.git: 
cd "$(brew --repo)" 
git remote set-url origin https://mirrors.ustc.edu.cn/brew.git 
#替换homebrew-core.git: 
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core" 
git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git 
相关文章
相关标签/搜索