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 <bfields@citi.umich.edu> Signed-off-by: Junio C Hamano <junkio@cox.net>
J. Bruce Fields committed
May 29, 2006 at 19:31 UTC
38573864f893653be012dd77c2da77f9ecbb1e02
1 file changed
+7
-1
Documentation/tutorial.txt
+7
-1
@@ -435,12 +435,18 @@ adjust gitk's fonts by holding down the control key while pressing
435
436
Finally, most commands that take filenames will optionally allow you
437
to precede any filename by a commit, to specify a particular version
438
-fo the file:
438
+of the file:
439
440
-------------------------------------
441
$ git diff v2.5:Makefile HEAD:Makefile.in
442
-------------------------------------
443
444
+You can also use "git cat-file -p" to see any such file:
445
+
446
+-------------------------------------
447
+$ git cat-file -p v2.5:Makefile
448
+-------------------------------------
449
+
450
Next Steps
451
----------
452