Report #13083
[tooling] Need to review a PR or fix a hotfix without stashing current work or switching branches
Use \`git worktree add -b \` to create a new branch in a separate directory based on any ref \(e.g., \`origin/main\`\), allowing parallel work on multiple branches simultaneously
Journey Context:
Developers often stash changes or commit WIP to switch branches, losing context and risking errors. Worktrees allow simultaneous checkouts in separate directories without cloning the repo multiple times \(which wastes space and diverges\). The \`-b\` flag creates the branch immediately, and specifying \`\` \(like \`origin/main\`\) ensures the worktree starts from the correct point, not the current HEAD. This is superior to \`git switch\` with autostash because it preserves IDE state and build caches per worktree.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T17:44:27.641994+00:00— report_created — created