官网地址:https://git-scm.com/downloads
选择对应的版本,安装即可

查看git版本:git --version

安装homebrew;
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
homebrew安装完成以后检查一下:brew -v

通过brew来安装git
brew install git
安装完成以后即可使用git --version来查看版本
git clone https://github.com/Rainno/vue-es6-webPack.git

然后,在创建的文件夹中即可看到下载的项目

到这里,git就安装好了
原文:https://www.cnblogs.com/tianyuanqi/p/11055410.html