Created
November 27, 2013 15:23
-
-
Save xiangzhuyuan/7677492 to your computer and use it in GitHub Desktop.
Git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Git目录 | |
---------- | |
'Git目录'是为你的项目存储所有历史和元信息的目录 | |
- | |
包括所有的对象 | |
(commits,trees,blobs,tags), | |
这些对象指向不同的分支.每一个项目只能有一个'Git目录'(这和SVN,CVS的每个子目录中都有此类目录相反),这个叫'.git'的目录在你项目的根目录下(这是默认设置,但并不是必须的). 如果你查看这个目录的内容, 你可以看所有的重要文件: | |
$>tree -L 1 | |
. | |
|-- HEAD # 这个git项目当前处在哪个分支里 | |
|-- config # 项目的配置信息,git config命令会改动它 | |
|-- description # 项目的描述信息 | |
|-- hooks/ # 系统默认钩子脚本目录 | |
|-- index # 索引文件 | |
|-- logs/ # 各个refs的历史信息 | |
|-- objects/ # Git本地仓库的所有对象 (commits, trees, blobs, tags) | |
`-- refs/ # 标识你项目里的每个分支指向了哪个提交 | |
(commit)。(也许现在还有其它 文件/目录 在'Git目录' 里面, 但是现在它们并不重要) | |
> Written with [StackEdit](https://stackedit.io/). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment