How do I show just the names and commit titles since a tag in Git?

Christopher Pickslay picture Christopher Pickslay · May 31, 2010 · Viewed 23.2k times · Source

I'm trying to use tags for release management in Git—I create a tag for each release. I'd like to be able to create release notes by listing the comment titles for every commit since a tag, or between 2 tags. I can't seem to find any way to do this.

Answer

Dominic Cooney picture Dominic Cooney · May 31, 2010

If your tags are named LastRelease and NextRelease then do

git log --pretty=format:%s LastRelease..NextRelease .