1. 安装Homebrew
在命令行中输入
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
2. 安装Git
https://git-scm.com/download/mac
按照网页上的步骤,在命令行中输入:
brew install git
或者
1. 安装MacPorts
https://www.macports.org/install.php
在网页中选择对应的系统版本,下载后安装
2. 命令行输入:
sudo port install git
安装Git-Gui
brew install git-gui