赞
踩
1、安装Homebrew
mac端安装brew的方法:只需要打开终端,输入以下代码即可:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
由于是外网,可能会安装不成功,报以下错误:
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
解决方法:国内安装源,运行以下代码:
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)" speed
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/HomebrewUninstall.sh)"
安装完成之后,需要运行以下代码进行查看:
brew --version
2、安装Git
运行如下命令:
brew install git
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。