3
當git通知我,我的本地分支在master後面時,如何告訴git打印出我後面的日誌消息。例如,在下面的情況下,我如何查看在主/從上沒有的2個提交提交的日誌消息?如何查看源/主在主機之前的提交消息?
git status
# On branch master
# Your branch is behind 'origin/master' by 2 commits, and can be fast-forwarded.
#
nothing to commit, working directory clean
真棒回答,謝謝,這比git的man頁面好多了!謝謝。 – ams
@ams:是的,它全部關於提交範圍:http://git-scm.com/book/ch6-1.html#Commit-Ranges – VonC
@ams:在[gitrevisions'中也有很好的解釋頁面](http://git-scm.com/docs/gitrevisions.html)(以及git中的所有其他提交操作符) –