title: How can I get the latest tag name in current branch in Git?
body: <p>What's the simplest way to get the most recent tag in Git?</p>
  
  <pre><code>git tag a HEAD
  git tag b HEAD^^
  git tag c HEAD^
  git tag
  </code></pre>
  
  <p>output:</p>
  
  <pre><code>a
  b
  c
  </code></pre>
  
  <p>Should I write a script to get each tag's datetime and compare them?</p>