2013-04-21 129 views
1

「git rebase」命令顯示一些提交id的列表,以便爲它們選擇操作;問題是所有的歷史消息都是相同的(空的),我不知道它們如何與git gui中顯示的SHA1 ID相關聯。有沒有辦法通過git rebase顯示的這個id來查看提交的內容?如何查看由git rebase顯示的commit-id的內容?

+3

至於刪除[這個問題的回答(http://stackoverflow.com/questions/16129372/如何取代所有空歷史消息的窗口) - 請注意,刪除人們花時間回答的問題並不是太好? – Arjan 2013-04-21 11:40:45

+0

同樣的問題已經在SO上得到了回答,而且被刪除的問題的答案不好。 – fithu 2013-04-21 14:17:23

回答

3

git show 應該這樣做

git show 8e222c8 

更多信息

 
For commits it shows the log message and textual diff. It also presents 
the merge commit in a special format as produced by git diff-tree --cc.