Find out which branch has a certain tag - Git

Asked

Viewed 281 times

3

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

1 answer

2


You can use the command:

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

Substitute <nome-tag> by the tag you are looking for.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.