Find out which branch has a certain tag - Git

3

I have a repository with several branches, and each branch has several tags. I want to find out which branch has a certain tag "tag_name". How can I do this?

    
asked by anonymous 02.02.2017 / 13:31

1 answer

2

You can use the command:

git branch --contains tags/<nome-tag>

Replace <nome-tag> with the tag you are looking for.

    
02.02.2017 / 13:36