From: W. Trevor King <wking@tremily.us> Date: Mon, 12 Nov 2012 01:30:11 +0000 (-0500) Subject: posts:git:notes: add cat-file example X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=890072aa60912e2d85f44c0235b61726d119fb2b;p=mw2txt.git posts:git:notes: add cat-file example --- diff --git a/posts/Git/notes.org b/posts/Git/notes.org index 9990daa..accc19d 100644 --- a/posts/Git/notes.org +++ b/posts/Git/notes.org @@ -1400,6 +1400,16 @@ Now merge with a particular strategy. There are more details about the available merge strategies in =git notes --help=. +** Printing a file + +You can =cat= a file from an arbitraty revision using + + : $ git cat-file blob <rev>:<path> + +For example, + + : $ git cat-file blob master:README + * Troubleshooting ** Git commit hangs with no output