Brandon Durham
Brandon Durham

Reputation: 7717

Is it possible to list all branches contained in a tagged release?

I need an easy way to track all branches that were part of a release back to their Jira tickets.

Our git process:

Possible to get a list of all branch names that were merged between to tags?

UPDATE


This gets me the hash for each commit, but I need the branch name:

git log --pretty=oneline v2.0.0-alpha.46...v2.0.0-alpha.45

Upvotes: 0

Views: 44

Answers (1)

Sajib Khan
Sajib Khan

Reputation: 24146

  • See the local branches list that contains the tag.

    $ git branch --contains <tag-name>
    
  • See the list of branches merged with master branch.

    $ git checkout master
    $ git pull origin master
    
    $ git branch --merged  
    

Upvotes: 1

Related Questions