v class="paragraph">
<p>For example, main-worktree/HEAD or main-worktree/refs/bisect/good
resolve to the same value as the main working tree&#8217;s HEAD and
refs/bisect/good respectively. Similarly, worktrees/foo/HEAD or
worktrees/bar/refs/bisect/bad are the same as
GIT_COMMON_DIR/worktrees/foo/HEAD and
GIT_COMMON_DIR/worktrees/bar/refs/bisect/bad.</p>
</div>
<div class="paragraph">
<p>To access refs, it&#8217;s best not to look inside GIT_DIR directly. Instead
use commands such as <a href="git-rev-parse.h