Homebrew国内源安装

苹果电脑标准安装脚本:(推荐 优点全面 缺点慢一点)

/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

苹果电脑极速安装脚本:(优点安装速度快 缺点update功能需要命令修复 )

/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)" speed

Linux 标准安装脚本:

rm Homebrew.sh
wget https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh
bash Homebrew.sh

苹果电脑卸载脚本:

/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/HomebrewUninstall.sh)"

Linux卸载脚本:

rm HomebrewUninstall.sh
wget https://gitee.com/cunkai/HomebrewCN/raw/master/HomebrewUninstall.sh
bash HomebrewUninstall.sh

解决Git报错:fatal: not in a git directory

git config --global --add safe.directory /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask
git config --global --add safe.directory /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core
git config --global --add safe.directory /usr/local/Homebrew/Library/Taps/homebrew/homebrew-services

 

posted @ 2022-09-19 03:59  贝贝猫  阅读(83)  评论(0)    收藏  举报