Search the documentation
6 pages for baseref.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Claude Code changelog
Claude Code CLI · in the page
changelog
…options shown below the divider in option dialogs * Fixed `worktree.baseRef: "head"` resolving to the main checkout's HEAD instead of the current worktree's HEAD when spawning subagents or calling `…
Claude Code settings
Claude Code CLI · in the page
settings
…--------------- | :------------------------------------ | | `worktree.baseRef` | Which ref new worktrees branch from. `"fresh"` (default) branches from `origin/<default-branch>` for a clean…
Claude Code settings reference
Claude Code CLI · in the page
settings-reference
…, sessions, and worktrees | Any file | | [`worktree.baseRef`](#worktree-baseref) | Branch new [worktrees](/docs/en/worktrees)…
Week 19 · May 4–8, 2026
Claude Code CLI · in the page
whats-new/2026-w19
…/p> <div className="digest-wins-grid"> <div>New <code>worktree.baseRef</code> setting (<code>fresh</code> | <code>head</code>) controls whether <code>--worktree</code>, the <code>EnterWorktree<…
What's new
Claude Code CLI · in the page
whats-new/index
…lugin archive for the current session. Also this week: **`worktree.baseRef`** chooses whether new worktrees branch from the remote default or local `HEAD`; **auto mode hard deny rules** block actio…
Run parallel sessions with worktrees
Claude Code CLI · in the page
worktrees
…so they branch from your repository's default branch unless `worktree.baseRef` is set to `"head"`. ### Clean up subagent and background-session worktrees Claude Code runs a periodic sweep that remov…