title: How can I git archive an arbitrary branch?
body: <pre><code>git checkout master
  git archive stage | tar -czf archive.tar.gz htdocs
  # archives master because it's checked out.
  </code></pre>
  
  <p>How can I archives the stage branch, regardless of the current I'm on?</p>