aster~2 Makefile  <b class="conum">(2)</b>
$ rm -f hello.c
$ git checkout hello.c            <b class="conum">(3)</b></pre>
</div>
</div>
<div class="colist arabic">
<ol>
<li>
<p>switch branch</p>
</li>
<li>
<p>take a file out of another commit</p>
</li>
<li>
<p>restore <code>hello.c</code> from the index</p>
</li>
</ol>
</div>
<div class="paragraph">
<p>If you want to check out <em>all</em> C source files out of the index,
you can say</p>
</div>
<div class="listingblock">
<div class="content">
<pre>$ git c