美文网首页
mac homebrew 更换国内仓库源

mac homebrew 更换国内仓库源

作者: 小小码蚁 | 来源:发表于2020-06-12 12:13 被阅读0次

    这里我们更换清华的仓库源

    cd "$(brew --repo)"
    
    git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git
    
    cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
    
    git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git
    
    cd "$(brew --repo)"/Library/Taps/homebrew/homebrew-cask
    
    git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git
    
    brew update
    

    实测超级快~~~

    相关文章

      网友评论

          本文标题:mac homebrew 更换国内仓库源

          本文链接:https://www.haomeiwen.com/subject/rjygtktx.html