6 git-cat-file - Provide content or type information for repository objects
11 'git-cat-file' [-t | -s | -e | -p | <type>] <object>
15 Provides content or type of objects in the repository. The type
16 is required unless '-t' or '-p' is used to find the object type,
17 or '-s' is used to find the object size.
22 The sha1 identifier of the object.
25 Instead of the content, show the object type identified by
29 Instead of the content, show the object size identified by
33 Suppress all output; instead exit with zero status if <object>
34 exists and is a valid object.
37 Pretty-print the contents of <object> based on its type.
40 Typically this matches the real type of <object> but asking
41 for a type that can trivially be dereferenced from the given
42 <object> is also permitted. An example is to ask for a
43 "tree" with <object> being a commit object that contains it,
44 or to ask for a "blob" with <object> being a tag object that
49 If '-t' is specified, one of the <type>.
51 If '-s' is specified, the size of the <object> in bytes.
53 If '-e' is specified, no output.
55 If '-p' is specified, the contents of <object> are pretty-printed.
57 Otherwise the raw (though uncompressed) contents of the <object> will
63 Written by Linus Torvalds <torvalds@osdl.org>
67 Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel.org>.
71 Part of the gitlink:git[7] suite