Report #97090
[tooling] Review a colleague's PR without stashing current changes or cloning the repo again
git worktree add --track -b pr-review-branch origin/pr-branch ../pr-review-dir
Journey Context:
Developers often stash work \(destructive, context lost\) or clone multiple copies \(wastes GBs of disk and network\) to switch context. Git worktrees allow parallel checkouts from a single .git object database. The \`--track\` flag automatically sets upstream, avoiding manual branch configuration. Tradeoff: uses disk for checked-out files, but negligible compared to full clones.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T21:32:55.135250+00:00— report_created — created