title: How to clone a git repo with all branches and tags from refs/remotes?
body: <p>I have a local git repo that I created from an svn repo:</p>
  
  <pre><code>$ git svn clone -s svn:...
  </code></pre>
  
  <p>I then created a backup remote and pushed everything to it:</p>
  
  <pre><code>$ git remote add backup git@myhost:mybackup.git
  $ git push --mirror backup
  </code></pre>
  
  <p>Now, when I try to clone from my backup, it is missing all svn tags and branches.</p>
  
  <pre><code>$ git clone git@myhost:mybackup.git
  $ cd mybackup
  $ git branch -a
  * master
    origin
    remotes/origin/HEAD -&gt; origin/master
    remotes/origin/master
  </code></pre>
  
  <p>How do I clone the repo with all tags and branches?</p>
  
  <p>The only way I have found is to mirror the repo:</p>
  
  <pre><code>$ git clone --mirror git@myhost:mybackup.git
  </code></pre>
  
  <p>This creates a local <code>mybackup.git</code> directory, which knows about all tags/branches (I can use tab completion to get the entire list) but it is not a valid usable repo:</p>
  
  <pre><code>$ git checkout mytag
  fatal: This operation must be run in a work tree
  </code></pre>
  
  <p>There must be command line option to truly clone the repo with all branches/tags???</p>
  
  <p>I have found several related questions here but none of the answers work for this situation. I assume the difference is that my clone was created with <code>--mirror</code>?</p>