1、下载:登陆Git官方网站下载Git软件:http://git-scm.com
根据自己的系统选择相应版本:
2、安装:下载好之后,双击开始安装
这里说明一下部分组件的意思
(1)Additional icons --勾选后会在桌面创建Git图标
(2)Windows Explorer integration --windows资源管理器集成,就是在点击鼠标右键时会出现相应的Git选项
(3)Associate .git* configuration files with the default text editor --Git默认的文本编辑器 --这里应该是Vim编辑器
(4)Associate .sh files to be run with Bash --.sh 运行bash
(5)use a trueType font in all console windows --在所有的控制台窗口使用TrueType字体
其实完全可以默认,一路next。
3、安装完成,打开你的Git
输入第一个命令,查看Git版本
git --version
4、配置你的信息
每个git用户都需要一个userName和Email地址,用来辨别身份
$ git config --global user.name "Your Name"
$ git config --global user.email "[email protected]"
注意git config
命令的--global
参数,用了这个参数,表示你这台机器上所有的Git仓库都会使用这个配置,当然也可以对某个仓库指定不同的用户名和Email地址。