Report #68659
[tooling] Need to review a PR or switch to another branch without stashing or committing WIP
Use \`git worktree add -b ../- /\` to create a linked working tree at a new path, work in parallel, then remove with \`git worktree remove\` when done.
Journey Context:
Stashing is destructive and context-switching is messy; cloning the repository twice wastes disk space because it duplicates the entire \`.git\` object database. Worktrees share the same underlying Git objects, making them lightweight \(only the working tree files are duplicated\). This allows you to have the same branch checked out in multiple directories simultaneously without the 'already checked out' safety restriction that prevents checking out the same branch in two places within a single working tree.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T21:43:44.394923+00:00— report_created — created