/code> at the tip of the branch (<code>git checkout
&lt;branch&gt;</code> would check out that branch without detaching <code>HEAD</code>).</p>
</div>
<div class="paragraph">
<p>Omitting <code>&lt;branch&gt;</code> detaches <code>HEAD</code> at the tip of the current branch.</p>
</div>
</dd>
<dt class="hdlist1"><em>git checkout</em> [&lt;tree-ish&gt;] [--] &lt;pathspec&gt;&#8230;&#8203;</dt>
<dd>
<p>Overwrite paths in the working tree by replacing with the
contents in the index or in the <code>&lt;tree-ish&