我想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)