首页 > 其他 > 详细

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

时间:2015-09-11 02:04:33      阅读:236      评论:0      收藏:0      [点我收藏+]

?

?
(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?zhuyinbai@sina.com
$?git?config?--global?user.email?zhuyinbai@sina.com
?
git config --global --add 键:值
$?git?config?--global?--add?user.name?zhuyinbai@sin.com
?
查看配置信息
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 ...
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?

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

原文:http://toknowme.iteye.com/blog/2242549

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!