path: root/Documentation/git-cat-file.txt
diff options
Diffstat (limited to 'Documentation/git-cat-file.txt')
1 files changed, 55 insertions, 0 deletions
diff --git a/Documentation/git-cat-file.txt b/Documentation/git-cat-file.txt
new file mode 100644
index 0000000..48fb377
--- /dev/null
+++ b/Documentation/git-cat-file.txt
@@ -0,0 +1,55 @@
+v0.1, May 2005
+git-cat-file - Provide content or type information for repository objects
+'git-cat-file' (-t | <type>) <object>
+Provides content or type of objects in the repository. The type
+is required if '-t' is not being used to find the object type.
+ The sha1 identifier of the object.
+ Instead of the content, show the object type identified by
+ <object>.
+ Typically this matches the real type of <object> but asking
+ for a type that can trivially dereferenced from the given
+ <object> is also permitted. An example is to ask for a
+ "tree" with <object> being a commit object that contains it,
+ or to ask for a "blob" with <object> being a tag object that
+ points at it.
+If '-t' is specified, one of the <type>.
+Otherwise the raw (though uncompressed) contents of the <object> will
+be returned.
+Written by Linus Torvalds <>
+Documentation by David Greaves, Junio C Hamano and the git-list <>.
+Part of the link:git.html[git] suite