path: root/Documentation/tutorial.txt
diff options
authorJ. Bruce Fields <>2006-05-29 23:31:33 (GMT)
committerJunio C Hamano <>2006-05-30 06:14:45 (GMT)
commit38573864f893653be012dd77c2da77f9ecbb1e02 (patch)
tree50f9a3cdc2eed93d6f26cde3bdd4273f49ae0e09 /Documentation/tutorial.txt
parent2be1bc48ffe04d97ca61e2b7988e6870cd37766b (diff)
documentation: add brief mention of cat-file to tutorial part I
I'd rather avoid git cat-file so early on, but the git-cat-file -p old-commit:/path/to/file trick is too useful.... Also fix a nearby typo while we're at it. Signed-off-by: J. Bruce Fields <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'Documentation/tutorial.txt')
1 files changed, 7 insertions, 1 deletions
diff --git a/Documentation/tutorial.txt b/Documentation/tutorial.txt
index 5fdeab9..039a859 100644
--- a/Documentation/tutorial.txt
+++ b/Documentation/tutorial.txt
@@ -435,12 +435,18 @@ adjust gitk's fonts by holding down the control key while pressing
Finally, most commands that take filenames will optionally allow you
to precede any filename by a commit, to specify a particular version
-fo the file:
+of the file:
$ git diff v2.5:Makefile
+You can also use "git cat-file -p" to see any such file:
+$ git cat-file -p v2.5:Makefile
Next Steps