title: How to list all tags within a certain git branch
body: <p>I have a couple of branches in my git repo. I would like to know if there is a command that lists all the tags within a certain branch not all the tags in the whole repo.</p>
  
  <p>I tried  <code>git tag --contains</code>. but it didn't work as expected.</p>
  
  <p>Image 1, there's a list of all the tags with their hashes (the marked two tags have the same hash/commit)
  <a href="https://i.stack.imgur.com/txbm5.png" rel="noreferrer"><img src="https://i.stack.imgur.com/txbm5.png" alt="enter image description here"></a>
  Image 2, as you can see I'm on a branch called "b" <a href="https://i.stack.imgur.com/Chxhm.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Chxhm.png" alt="enter image description here"></a>
  Image 3, I queried which branch contains the hash of both tags (both have same hash) and it said they are on branch "b" (the one I'm currently on)<a href="https://i.stack.imgur.com/YNaig.png" rel="noreferrer"><img src="https://i.stack.imgur.com/YNaig.png" alt="enter image description here"></a></p>
  
  <p>Image 4, describing the branch tags, It only gave me ONE tag<a href="https://i.stack.imgur.com/9sLAK.png" rel="noreferrer"><img src="https://i.stack.imgur.com/9sLAK.png" alt="enter image description here"></a></p>
  
  <p>Image 5, also describing the tags of the hash that is supposed to point to the commit that is tagged with both tags, it only shows ONE tag again<a href="https://i.stack.imgur.com/8D5RN.png" rel="noreferrer"><img src="https://i.stack.imgur.com/8D5RN.png" alt="enter image description here"></a></p>