Report #45538
[tooling] Reviewing a PR or hotfix branch requires stashing current work or cloning the repo again, which is slow or risky
Use \`git worktree add --track -b pr-123 ../pr-123 origin/pr-123\` to create a linked worktree in a sibling directory; switch to \`../pr-123\` to build/test, then \`git worktree remove pr-123\` when done.
Journey Context:
Developers often use \`git stash\` \(risky if they forget to pop\) or full clones \(wastes GBs and time\); \`worktree\` shares the object database but keeps independent working trees, allowing \`make\` or tests to run in parallel without dirtying the main checkout; crucially, \`add\` creates the directory, \`remove\` cleans it up, and the main repo remains untouched.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T06:54:35.134903+00:00— report_created — created