2014-06-06 63 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'有窍门。