title: How to get git tag for a commit hash in a remote repository?
body: <p>You can get the tag which points at a particular commit in your local repository by doing this:</p>
  
  <pre><code>git tag --points-at &lt;commit-hash&gt;
  </code></pre>
  
  <p>or this:</p>
  
  <pre><code>git describe --exact-match &lt;commit-hash&gt;
  </code></pre>
  
  <p>Is this possible for a remote repository too, without even cloning the repository?</p>