in the
index in state <code>B</code>.  It resets (i.e. moves) the <code>HEAD</code> (i.e. the tip of
the current branch, if you are on one) to <code>target</code> (which has the file
in state <code>D</code>).</p>
</div>
<div class="literalblock">
<div class="content">
<pre>working index HEAD target         working index HEAD
----------------------------------------------------
 A       B     C    D     --soft   A       B     D
                          --mixed  A       D     D
                          --ha