Git - 如何从给定范围内的提交获取所有消息?

dma*_*may 1 git

是否有任何简单的方法可以仅以纯文本形式获取提交消息,而输出中没有任何其他信息?

Fit*_*ons 5

我想git log --pretty=format:%B <from>..<to>这就是你所追求的。

例如我的一个项目:

$ git log --pretty=format:%B 35548842b09..HEAD

Changes quoting to fix transcoding on windows

Removes an unneeded puts statement

Updates the readme

Updates streamroller.bat
Run Code Online (Sandbox Code Playgroud)