Git的安装

Windows版本安装

在Windows上使用Git,可以从Git官网直接下载安装程序,(网速慢的同学请移步国内镜像),然后按默认选项安装即可。

安装完成后,在开始菜单里找到“Git”->“Git Bash”,蹦出一个类似命令行窗口的东西,就说明Git安装成功!

安装完成后: 设置你的账户和邮箱

$ git config --global user.name "Your Name"
$ git config --global user.email "[email protected]"
Mac版本安装

1、未安装homebrew,需安装homebrew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

2、安装git

brew install git

3、设置username和email(github每次commit都会记录他们)

git config --global user.name "wenbo"
git config --global user.email "[email protected]"



你可能感兴趣的:(Git的安装)