Cjku/git: Difference between revisions

Jump to navigation Jump to search
276 bytes added ,  29 October 2014
Line 334: Line 334:
$ git reset refs/heads/master -- README.txt
$ git reset refs/heads/master -- README.txt


In short, a tree-ish is a thing that lead to a specific tree object.
In short, a tree-ish is a thing that lead to a specific tree object. If you give a thing(name/ refname/tag) to git, and git can resolve what you give to a unique tree object, then the thing you give is a tree-ish. In the following diagram, only the name of a blob is not a tree-ish, since git git can not reach any tree object start from a blob
[[File:Git_treeish.png|center|thumb|800px|Figure N. tree-ish]]
[[File:Git_treeish.png|center|thumb|800px|Figure N. tree-ish]]
</div>
</div>
Confirmed users
1,643

edits

Navigation menu