projects
/
mw2txt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25c2020
)
posts:git:notes: add cat-file example
author
W. Trevor King
<wking@tremily.us>
Mon, 12 Nov 2012 01:30:11 +0000
(20:30 -0500)
committer
W. Trevor King
<wking@tremily.us>
Mon, 12 Nov 2012 01:30:29 +0000
(20:30 -0500)
posts/Git/notes.org
patch
|
blob
|
history
diff --git
a/posts/Git/notes.org
b/posts/Git/notes.org
index 9990daaec66e8c5bdfc00f795d80d385955583d3..accc19da05c570976d442d9bcf8e4a8074f05aa3 100644
(file)
--- 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