Git-从入门到放肆(一)——本地安装使用

一、下载:登录Git官方网站下载Git软件:http://git-scm.comjavascript

根据本身的系统选择相应版本:java

二、安装:下载好以后,双击开始安装git

这里说明一下部分组件的意思windows

(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字体bash

其实彻底能够默认,一路next。编辑器

三、安装完成,打开你的Git字体

输入第一个命令,查看Git版本网站

git --version

四、配置你的信息code

每一个git用户都须要一个userName和Email地址,用来辨别身份ip

$ git config --global user.name "Your Name"
$ git config --global user.email "email@example.com"

注意git config命令的--global参数,用了这个参数,表示你这台机器上全部的Git仓库都会使用这个配置,固然也能够对某个仓库指定不一样的用户名和Email地址。

相关文章
相关标签/搜索