d>
<dt class="hdlist1"><code>git archive --prefix=git-1.4.0/ -o git-1.4.0.tar.gz v1.4.0</code></dt>
<dd>
<p>Same as above, but the format is inferred from the output file.</p>
</dd>
<dt class="hdlist1"><code>git archive --format=tar --prefix=git-1.4.0/ v1.4.0^{tree} | gzip &gt;git-1.4.0.tar.gz</code></dt>
<dd>
<p>Create a compressed tarball for v1.4.0 release, but without a
global extended pax header.</p>
</dd>
<dt class="hdlist1"><code>git archive --format=zip --prefix=git-docs/ HEAD:Documentation/ &gt; gi