code> commit).  But you know the pull you are going
to make does not affect <code>frotz.c</code> or <code>filfre.c</code>, so you revert the
index changes for these two files.  Your changes in working tree
remain there.</p>
</li>
<li>
<p>Then you can pull and merge, leaving <code>frotz.c</code> and <code>filfre.c</code>
changes still in the working tree.</p>
</li>
</ol>
</div>
</dd>
<dt class="hdlist1">Undo a commit and redo</dt>
<dd>
<div class="listingblock">
<div class="content">
<pre>$ git commit ...
$ 