I am trying to get the branch name from a given tag.
I tried git describe --tag <tag-name>
but this doesn't provide me any branch name. I tried using gitk
to show to the tags and branch but gitk doesn't show me the tag. When I list out the tags git tag -l
I see the tag name exist in the list.
I just want a simple command which can tell me the branch when tag name is provided.