2014-06-06 77 views
0

由於GitHub的Mac應用程序開始不鼓勵我在我的提交中編寫長的摘要文本,我一直在使用Description域來開始記錄更多細節。如何將提交描述包含在--pretty git log中?

我用我的git的日誌產生這樣的更新日誌:

> git log --pretty=%s --since "last wednesday" 
Prevents a double 'error #8' message 
This should be part of e074d5b 
Logging out while offline is problematic... 
Make the Pinterest sharing choices less ambiguous 
Sometimes the download buttons disappeared 
Downloading wasn't prompting subscriptions on iPad 

不過,現在我想包括描述文本,以便更新我的changelog這樣,當我沒有錯過任何細節。我沒有看到任何關於description在該頁面上的名單git書http://git-scm.com/book/en/Git-Basics-Viewing-the-Commit-History

回答

0

沒關係,通過審查git help log發現它。

git log --pretty='%s %b'有竅門。