find . -name '*.h' -print0 | git checkout-index -f -z --stdin</pre>
</div>
</div>
<div class="paragraph">
<p>The <code>--</code> is just a good idea when you know the rest will be filenames;
it will prevent problems with a filename of, for example,  <code>-a</code>.
Using <code>--</code> is probably a good policy in scripts.</p>
</div>
</div>
</div>
<div class="sect1">
<h2 id="_using_temp_or_stageall">Using --temp or --stage=all</h2>
<div class="sectionbody">
<div class="paragraph">
<p>When <code>--temp</co