ns that <code>git reset -p</code> is the opposite of <code>git add -p</code>, i.e.
you can use it to selectively reset hunks. See the &#8220;Interactive Mode&#8221;
section of <a href="git-add.html">git-add(1)</a> to learn how to operate the <code>--patch</code> mode.</p>
</div>
</dd>
<dt class="hdlist1"><em>git reset</em> [&lt;mode&gt;] [&lt;commit&gt;]</dt>
<dd>
<p>This form resets the current branch head to <code>&lt;commit&gt;</code> and
possibly updates the index (resetting it to the tree of <code>&lt;