title: How to clone a specific Git tag
body: <p>From <a href="http://git-scm.com/docs/git-clone">git-clone(1) Manual Page</a></p>
  
  <blockquote>
    <p><code>--branch</code> can also take tags and detaches the HEAD at that commit in the resulting repository.</p>
  </blockquote>
  
  <p>I tried  </p>
  
  <pre><code>git clone --branch &lt;tag_name&gt; &lt;repo_url&gt;
  </code></pre>
  
  <p>But it does not work. It returns:  </p>
  
  <pre><code>warning: Remote branch 2.13.0 not found in upstream origin, using HEAD instead
  </code></pre>
  
  <p>How to use this parameter?</p>