{"version":"2.1.335","anchor":"git-worktree-creation-retries-on-registration-races","canonical_anchor":"git-worktree-creation-retries-on-registration-races","heading":"Creating git worktrees retries when git hits a conflicting change","tier":"notice","area":"Worktrees","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.335\/e\/git-worktree-creation-retries-on-registration-races","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.335","markdown":"### Creating git worktrees retries when git hits a conflicting change\n\nCreating a git worktree or deleting its branch now retries when git reports that a worktree record was changing underneath it\n\n**What**\n\nA git worktree is a second working copy of the same repository, checked out in its own folder. Claude Code can create worktrees and delete their branches.\n\nBoth actions now try again, instead of giving up after one attempt, when git fails with one of these errors about its worktree records:\n\n- a problem with the worktrees `commondir` file\n\n- a worktree that is locked\n\n- an `Invalid path` error\n\nEach retry is logged with the message \"git met a registration that was changing\".\n\n**Why**\n\nWhen several worktrees are created at the same time, git can trip over its own records. Retrying makes that case more reliable.\n\n- Area: Worktrees\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}