Report #48163
[tooling] Need to switch branches but have uncommitted changes and a long-running build in the current workspace
Use \`git worktree add ../ \` to create a linked working tree. Work there, then remove the directory and prune when done \(\`git worktree prune\`\).
Journey Context:
Developers often stash changes or interrupt builds to hotfix a bug on another branch. Worktrees eliminate this friction by allowing truly parallel working directories that share the same Git object database. Unlike cloning the repo again \(which wastes disk space and network\), worktrees are lightweight references. The tradeoff is that you cannot check out the same branch in two worktrees simultaneously, but this enforces a clean mental model of one branch per task.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T11:19:03.496644+00:00— report_created — created