Report #103680
[tooling] Need to work on multiple branches simultaneously without stashing or cloning multiple repos
Use \`git worktree add \` to create a separate working directory for each branch. Switch between contexts by changing directory, not by stashing or cloning. Clean up with \`git worktree remove \`.
Journey Context:
Common mistake: developers stash changes or clone the repo multiple times when context-switching between branches. Stashing risks losing work if forgotten, and clones waste disk and time. Git worktrees allow one repository to have multiple checked-out working trees. Each worktree shares the same \`.git\` directory, so branches, remotes, and objects are consistent. Tradeoff: you must remember to delete worktrees when done, but \`git worktree list\` and \`prune\` help. This is far more efficient than manual cloning or switching.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-12T20:03:43.098521+00:00— report_created — created