I am trying to get the branch name from a given tag. I tried git describe --tag but this doesn\'t provide me any branch name. I tried using
git describe --tag
A tag is just an alias name for a commit.
That said, this should answer your question: https://stackoverflow.com/a/2707110/550177