如何获取上一个版本和当前快照版本之间的提交?

How can I get the commits between the last release and the current snapshot version?

我想在不指定最后一个版本的情况下获取上一个版本和当前快照版本之间的提交。

目前我有以下命令:

 git log 1.2.3..HEAD

是否有对上一版本的通用引用?

如果 "last release" 你指的是最后一个标签,那么是的,有办法。这个命令

git describe --tags --abbrev=0

打印当前分支中的最后一个标签。所以你的命令变成

git log `git describe --tags --abbrev=0`..