Prepare to work on top of <code>&lt;commit&gt;</code>, by detaching <code>HEAD</code> at it
(see "DETACHED HEAD" section), and updating the index and the
files in the working tree.  Local modifications to the files
in the working tree are kept, so that the resulting working
tree will be the state recorded in the commit plus the local
modifications.</p>
<div class="paragraph">
<p>When the <code>&lt;commit&gt;</code> argument is a branch name, the <code>--detach</code> option can
be used to detach <code>HEAD<