Search code examples
gittagscommit

Can git list the tags that occur between two particular commits?


Is there a way to get git to list all the tags that were added in between two commits? That is, only show me the tags that appear between point A and point B.


Solution

  • You can use the git log command with these options:

    git log tagA...tagB --decorate --simplify-by-decoration
    

    --decorate displays the tag names next to the commit, and --simplify-by-decoration shows only commits that have been tagged.