title: How to unpack packed-refs?
body: <p>I cloned a project from github with <em>git clone --mirror</em>. That left me with a repository with a <em>packed-refs</em> file, a <em>.pack</em> and an <em>.idx</em> file. For developement purposes I want to look at the loose objects, so I unpacked the objects with <em>git unpack-objects &lt; &lt;pack file&gt;</em> which worked fine (I unpacked the pack file into a new repo if you're wondering). Only thing is that <em>refs/heads/</em> is still empty, all the refs are still only in <em>packed-refs</em> but I need them in <em>refs/heads/</em>.
  I wasn't able to find a command that would extract or unpack those references and I can somehow not believe that I would have to do this by hand (or via pipes).</p>
  
  <p>So actually I have two questions:</p>
  
  <ol>
  <li>Is there an easy way to "restore" refs from <em>packed-refs</em>?</li>
  <li>If not, why isn't there? If there's a command for unpacking objects, what is the reasoning behind not providing the same for refs (don't forget that there's even a command <em>git pack-refs</em>...)</li>
  </ol>
  
  <p>Thanks for any tips and ideas.</p>