Report #6479
[tooling] Switching git branches requires stashing WIP or polluting history with 'wip' commits, breaking flow on long-running tasks
Use \`git worktree add ../feature-branch-name feature-branch\` to create a linked working directory on disk, allowing simultaneous work on multiple branches with shared object database but separate working trees
Journey Context:
Developers default to \`git stash\` \(risky to forget\) or \`git commit -m 'wip'\` \(pollutes history\) when needing to context-switch. Worktrees enable true parallelism \(e.g., hotfix vs. feature\) with zero mental overhead. Tradeoff: consumes disk for the separate working tree \(shares .git/objects\), and you cannot checkout the same branch in two worktrees. Superior to cloning the repo twice.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T00:13:20.416742+00:00— report_created — created