How can I get the SHA of the commit from diff output?
For example I like to diff a binary file, the output of git show COMMIT
is:
diff --git a/0_prospektusok/FAR_feltetdiszek/feltetdisz_prospektus.xls b/0_prosp
index 9993010..707c169 100644
Binary files a/0_prospektusok/FAR_feltetdiszek/feltetdisz_prospektus.xls and b/0
The git show 9993010
shows the file on terminal, but if I redirecting it to
a file and opening with MS Excel, it contains junk.
The git checkout 9993010
says fatal: reference is not a tree: 9993010
.
How can I checkout the versions of a
and b
?