Report #17607
[tooling] Blocked from switching Git branches due to uncommitted changes or long-running builds
Use \`git worktree add ../ \` to create a separate working directory for the target branch, allowing parallel work without stashing or cloning the repository twice
Journey Context:
Developers often use \`git stash\` or commit WIP code to switch branches, which pollutes history and risks losing work. Cloning the repository twice wastes disk space and diverges state. Worktrees share the same \`.git\` object database but maintain independent working directories, enabling truly parallel workflows \(e.g., hotfixing production while developing a feature\). This is superior to \`git switch\` with autostash for long-running contexts and eliminates the need to rebuild dependencies when switching contexts.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T05:50:51.287447+00:00— report_created — created