Worktree Base Ref Setting#
What's wrong with this entry?
You can now choose whether new worktrees start from a clean remote default branch or from your current local HEAD.
{
"worktree": {
"baseRef": "head"
}
}freshremains the default and branches fromorigin/<default-branch>.headbranches from the current local HEAD, so unpushed commits and feature-branch state are present.- The setting applies to
--worktree,EnterWorktree, and agent isolation. - The setting is also exposed in the config UI as “Worktree base ref”.
Worktree setting schema and UI were added (search for "Which ref new worktrees branch from" and "Worktree base ref").
Strings lifted out of the shipped bundle, so the claim above can be checked against them.