首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在--pretty git日志中包含提交描述?

如何在--pretty git日志中包含提交描述?
EN

Stack Overflow用户
提问于 2014-06-06 19:04:00
回答 1查看 27关注 0票数 0

自从GitHub Mac应用程序开始不鼓励我在提交中编写冗长的摘要文本以来,我一直在使用Description字段来记录更多细节。

我使用我的git日志生成一个如下所示的changelog:

代码语言:javascript
复制
> 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时,我不会错过任何细节。我在git book http://git-scm.com/book/en/Git-Basics-Viewing-the-Commit-History的这个页面上的列表中没有看到任何关于description的东西

EN

回答 1

Stack Overflow用户

发布于 2014-06-06 19:07:56

不要紧,是通过git help log找到的。

git log --pretty='%s %b'做到了这一点。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/24080307

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档