Search code examples
gitgit-log

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


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.


Solution

  • If your tags are named LastRelease and NextRelease then do

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