Git tag information - which branch am I on?
Tag commands
Git provide information about all tags in this repository. For example, when I run git tag
on my repository, it displays
tag1.0
tag1.1
tag1.2
Let's say my repository has two branches. How do I know which branch a tag has tag1.0
been linked to?
Yes, I know that if I do git show tag1.0
, I can determine if it is the 1st branch or the 2nd, based on previous changes. However, I would like to know if there is a more direct method. If it exists, what command should I use?
+3
source to share