码迷,mamicode.com
首页 > 系统相关 > 详细

Brew 替换为国内源Mac

时间:2019-08-31 00:45:02      阅读:139      评论:0      收藏:0      [点我收藏+]

标签:epo   刷新   tps   https   tap   date   新源   url   com   

# 替换brew.git

cd "$(brew --repo)"

git remote set-url origin https://mirrors.aliyun.com/homebrew/brew.git

# 替换homebrew-core.git

cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"

git remote set-url origin https://mirrors.aliyun.com/homebrew/homebrew-core.git

# 刷新源

brew update

 

 

Fish

# 替换brew.git

cd (brew --repo)

git remote set-url origin https://mirrors.aliyun.com/homebrew/brew.git

# 替换homebrew-core.git

cd (brew --repo)/Library/Taps/homebrew/homebrew-core

git remote set-url origin https://mirrors.aliyun.com/homebrew/homebrew-core.git

# 刷新源

brew update

Brew 替换为国内源Mac

标签:epo   刷新   tps   https   tap   date   新源   url   com   

原文地址:https://www.cnblogs.com/JamyWong/p/11437516.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!