> From: Jirong Hu <jirong...@gmail.com>
> $ git cat-file -p master^{tree}
> fatal: Not a valid object name master^{tree}
> I am reading the GIT Pro and GIT Internal. The command above doesn't work. 
> Can you help to fix it?

My guess is that "master" is a branch name, and so is a commit, not a
tree.  Since "master" isn't a tag, it can't be dereferenced.  But in a
lot of situations, it seems that a commit identifier can be used where
a tree identifier is expected, and the command will obtain the tree
within the commit.


You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to