Skip to content
Cockpit0.29.0
A snapshot: read at commit 707a04c7ce8 on 2026-10-18T00:06:01Z by majordomus 0.29.0. Nothing on this page is read again. See it live

majordomus worktree migrate

Bring every misplaced worktree to its canonical path, dirty state included, with a fingerprint taken before and after each move; --plan shows the steps and changes nothing

What it is

read only

Bring every misplaced worktree to its canonical path, dirty state included, with a fingerprint taken before and after each move; --plan shows the steps and changes nothing

Identity
executable.worktree.migrate
Program
executable
Runs
non interactive
Requires
repository

Where it appears

Command line
majordomus worktree migrate
Workflow
just worktree-migrate
MCP tool
majordomus_worktree_migration_plan
HTTP
/api/v1/worktrees/migration
Declared in
apps/majordomus-cli/src/cli.rs
Capability
worktree.migration_plan

Arguments

argumentvalues fromrequiredhelp
--plan—Show the plan and change nothing
--dry-run—The same as --plan
--allow-copy—When a move crosses filesystems, copy the tree, repair git's link, verify the copy against a manifest of every entry, and only then remove the original
--only—Only these branches
--include-ephemeral—Also move the scratch checkouts of sessions (under the temporary directory or .claude/worktrees), which are otherwise reported and left alone
--repo—Start the search for the repository root here (default: the current directory)
--discovery—How declarative files are enumerated
--strict—Refuse to proceed when any file of the layer carries an error diagnostic
--share—The tool distribution's share directory (kinds.yaml, schemas/); default: $MAJORDOMUS_SHARE, then the repository's own share/, then the one beside the executable
--format—Output shape