如何從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