 working
directory.</p>
</li>
<li>
<p>This commits all other changes in the index.</p>
</li>
<li>
<p>Adds the file to the index again.</p>
</li>
</ol>
</div>
</dd>
<dt class="hdlist1">Keep changes in working tree while discarding some previous commits</dt>
<dd>
<div class="paragraph">
<p>Suppose you are working on something and you commit it, and then you
continue working a bit more, but now you think that what you have in
your working tree should be in another branch that has nothing to do
with what you co