title: Get git tag of checked out revision?
body: <p>I'm doing</p>
  
  <pre><code>$ git tag
  
  current
  tag_example_to_test_task
  
  $ git checkout tag_example_to_test_task
  
  ...
  
  HEAD is now at 75fdde3... commit comment text example
  
   $ git name-rev --name-only --tags HEAD
  
  current
  
  $ git describe --exact-match --tags
  
  current
  </code></pre>
  
  <p>I need to end execution sequence with some command like this:</p>
  
  <pre><code>$ git "some command here"
  
  tag_example_to_test_task
  </code></pre>
  
  <p>How to do that? How to get tag name of current checked out tag?</p>