Report #51047
[tooling] Need to run long tests on branch B but have uncommitted work on branch A
Use \`git worktree add ../project-branch-b branch-b\` to create a linked working tree, then run tests there without touching your main working directory. Remove with \`git worktree remove ../project-branch-b\`.
Journey Context:
People often stash changes and checkout, or clone the repo twice \(wasting disk space and getting out of sync\). Worktrees share the same .git object database but have independent working directories. This allows true parallel work. The tradeoff is you cannot check out the same branch in two worktrees \(by default\), and you need to manage the directories.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T16:09:55.988571+00:00— report_created — created