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>
This commit is contained in:
J. Bruce Fields 2006-05-29 19:31:33 -04:00 committed by Junio C Hamano
parent 2be1bc48ff
commit 38573864f8

View File

@ -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 HEAD:Makefile.in
-------------------------------------
You can also use "git cat-file -p" to see any such file:
-------------------------------------
$ git cat-file -p v2.5:Makefile
-------------------------------------
Next Steps
----------