Report #58024
[tooling] How to review a PR branch without stashing dirty WIP in current directory
Run \`git worktree add ../pr-review \` to checkout the branch in a sibling directory sharing the same .git object store, work in parallel, then \`rm -rf ../pr-review\` and \`git worktree prune\` when done.
Journey Context:
Developers often stash, reset, or clone the entire repository again \(wasting disk and time\) just to check a branch. Worktrees share the object database but allow independent checkouts; the only caveat is that you cannot check out the same branch in two worktrees simultaneously. Always place worktrees outside the main tree \(e.g., sibling dirs\) to avoid nesting confusion, and remember to prune stale entries.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T03:53:01.895401+00:00— report_created — created