Report #102891
[tooling] How to efficiently check out multiple branches simultaneously in Git without cloning again
Use \`git worktree add \` to create additional working trees for different branches in separate directories. Example: \`git worktree add ../feature-x feature-x\` opens a second working copy linked to the same repository.
Journey Context:
Common mistake: cloning the repo multiple times or stashing/switching branches, wasting disk space and context. Git worktrees allow parallel development, running tests or comparing branches without leaving the main checkout. They share the object store, so they're lightweight. The catch: you must manage the worktree list with \`git worktree list\` and prune with \`git worktree prune\` after deleting a branch.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-09T15:51:15.933074+00:00— report_created — created