code>topic/wip</code> branch and keep working.</p>
</li>
</ol>
</div>
</dd>
<dt class="hdlist1">Undo commits permanently</dt>
<dd>
<div class="listingblock">
<div class="content">
<pre>$ git commit ...
$ git reset --hard HEAD~3   <b class="conum">(1)</b></pre>
</div>
</div>
<div class="colist arabic">
<ol>
<li>
<p>The last three commits (<code>HEAD</code>, <code>HEAD^</code>, and <code>HEAD~2</code>) were bad
and you do not want to ever see them again.  Do <strong>not</strong> do this if
you have already gi