如何从diff输出获取提交的SHA?如何从差异输出获取提交的SHA?
例如我喜欢diff的二进制文件,的git show COMMIT
输出为:
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
的git show 9993010
示出了终端中的文件,但如果将它重定向到 文件和开口使用MS Excel,它包含垃圾。
git checkout 9993010
说fatal: reference is not a tree: 9993010
。
如何结算a
和b
的版本?
http://stackoverflow.com/questions/19224476/how-does-index-f2e4113-d4b9bfc-100644-in-git-的可能的复制diff-corresponding-to-sha1-id-in-gi(我不想把它作为一个重复关闭) – torek