【Learn Git 01】:git 安装与简单配置

 
(1)Git下载
http://git-scm.com/
 

(2)安装

一路next
 
(3)Git 命令
命令
描述
 
which -a git 
查看所有Git版本
 
git --version
查看Git版本
 
 
 
 
 
 
 
 
 
 
(4)Git基本配置
 
(4.1)Git配置用户名和邮箱
$ git config --global user.name  [email protected]
$ git config --global user.email  [email protected]
 
git config --global --add 键:值
$ git config --global --add user.name [email protected]
 
查看配置信息
git config --global --add 键:值
$ git config user.name
$ git config --get user.name
$ git config --list --global
 
 
(4.2)Git配置三个级别
$ git config --system 
$ git config --global
$ git config --local
 
local最高
global当前用户
system
 
(4.3)Git帮助文档
$ git config --help
Launching default browser to display HTML ...
 

$ git help config

Launching default browser to display HTML ...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

猜你喜欢

转载自toknowme.iteye.com/blog/2242549