hese will create a reference to it:</p>
</div>
<div class="listingblock">
<div class="content">
<pre>$ git checkout -b foo   <b class="conum">(1)</b>
$ git branch foo        <b class="conum">(2)</b>
$ git tag foo           <b class="conum">(3)</b></pre>
</div>
</div>
<div class="colist arabic">
<ol>
<li>
<p>creates a new branch <code>foo</code>, which refers to commit <code>f</code>, and then
updates <code>HEAD</code> to refer to branch <code>foo</code>. In other words, we&#8217;ll no longer
be in detached 