2012-11-01 34 views

回答

3

我认为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 
0

git log --format=format:%b只显示提交,或git log --format=format:%s为对象的身体,没有任何其他信息。

+0

它应该是%B而不是%b。 –

0

尝试git log --format=%B。尝试man git-log获取更多选项。

相关问题