Skip to main content

A tutorial introduction to git: part two

Popularity Report

Total Popularity Score: 0

Loading...
Loading...
Loading...
Loading...
Loading...
Loading...

Rank

URL Tag Cloud

Public Sticky notes

A tree can refer to one or more "blob" objects, each corresponding to a file. In addition, a tree can also refer to other tree objects

Highlighted by xinran

A "blob" is just file data

Highlighted by xinran

the contents of these files is just the compressed data plus a header identifying their length and their type

Highlighted by xinran

a blob, a tree, a commit, or a tag

Highlighted by xinran

The "tree" object here refers to the new state of the tree:

Highlighted by xinran

Besides blobs, trees, and commits, the only remaining type of object is a "tag"

Highlighted by xinran

and refer to "parent"

Highlighted by xinran

refer to "tree" objects

Highlighted by xinran

represent the state of a single directory

Highlighted by xinran

"blob" objects contain file data without any other structure.

Highlighted by xinran

that lots of commands take a tree as an argument.

Highlighted by xinran

The thing that it's comparing against is actually the index file

Highlighted by xinran

.git/index

Highlighted by xinran

between the working directory and the last commit

Highlighted by xinran

between the index and the last commit

Highlighted by xinran

git diff --cached

Highlighted by xinran

-a option to commit tells it to first update the index with all changes in the working tree

Highlighted by xinran

by default "git commit" uses the index to create the commit, not the working tree

Highlighted by xinran

The effect of the "git add" was to add one entry to the index file

Highlighted by xinran