内容来源:https://git-scm.com/book/zh/v2
1 版本控制 Version Control System
建立一个可比较的基础,详细的对比每一个修改的不同之处。
分布式版本控制系统(Distributed Version Control System,简称 DVCS)
例如:Git,每一次克隆都是本地对代码仓库的完整备份。



2 以前没注意到的 git help <verb>, 附赠几个例子。


建议初次看的几个命令:add commit push pull merge log.

git add Document/*.txt
反斜杠的语义是表示 包含Document目录下所有递归子目录的 *.txt;
如果不加,则只在Document目录下的 *.txt 才会被选中。
working tree file、index、commit(HEAD)提交环节的三个部分概念,转贴两篇blog:
GIT基本概念和用法总结(转)
git diff的用法
HEAD:最近的一次commit的信息。
涉及命令:git add / git commit / git diff
git help status, 上来就告诉你他是干嘛的:Show the working tree status。

DESCRIPTION 部分同样 将 working tree/index file/HEAD commit 阐释了一遍。
来,再看看git commit 怎么说

//TODO 待补全
2 git最基础的一章

“当你执行 git clone 命令的时候,默认配置下远程 Git 仓库中的每一个文件的每一个版本都将被拉取下来。” ——还能再安全一点吗?但是能做到如此只小也是牛逼。


网友评论