1

I would like to get the commits between the last release and the current snapshot version without specifying the last release.

Currently I have the following command:

 git log 1.2.3..HEAD

Is there a generic reference to the last release?

phd
  • 82,685
  • 13
  • 120
  • 165
Bionix1441
  • 2,135
  • 1
  • 30
  • 65

1 Answers1

2

If by "last release" you mean the last tag then yes, there is a way. This command

git describe --tags --abbrev=0

prints the last tag in the current branch. So your command becomes

git log `git describe --tags --abbrev=0`..
phd
  • 82,685
  • 13
  • 120
  • 165