<code>HEAD</code> state after this command.</p>
</li>
<li>
<p>similarly creates a new branch <code>foo</code>, which refers to commit <code>f</code>,
but leaves <code>HEAD</code> detached.</p>
</li>
<li>
<p>creates a new tag <code>foo</code>, which refers to commit <code>f</code>,
leaving <code>HEAD</code> detached.</p>
</li>
</ol>
</div>
<div class="paragraph">
<p>If we have moved away from commit <code>f</code>, then we must first recover its object
name (typically by using git reflog), and then we can cr