Report #99204
[tooling] Need to switch branches but have uncommitted changes or need to build/test multiple branches side by side
Use \`git worktree add ../ \` to check out a branch in a separate directory sharing the same \`.git\` object store. Work in parallel without stashing or cloning again; delete with \`git worktree remove\` when done.
Journey Context:
Developers often clone the repo twice or stash/pop repeatedly when context-switching. Worktrees share the Git object database, so disk overhead is small, and you can run tests or builds on two branches simultaneously while keeping WIP intact in the main worktree. Common mistake: moving or deleting the worktree directory manually leaves stale entries; always use \`git worktree remove\`.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-29T04:44:56.414582+00:00— report_created — created