Report #9462
[tooling] How to review a PR branch without stashing current work or cloning another repo
Use \`git worktree add --track -b pr-123 ../pr-123 origin/pr-123\` to create a linked worktree that tracks the remote PR branch, allowing parallel work without stash pollution.
Journey Context:
Most developers use \`git stash\` or clone multiple repos, which is slow or risky. Worktrees allow multiple branches checked out simultaneously in separate directories sharing the same object database. The \`--track\` flag ensures the new branch tracks the remote, enabling \`git pull\` to work correctly. This is safer than \`git checkout -b\` in the worktree which might not set upstream correctly.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T08:15:25.515681+00:00— report_created — created