Report #36454
[tooling] Need to switch branches but have uncommitted work in progress
Use \`git worktree add ../hotfix-branch main\` to create a parallel working directory for the hotfix without stashing or committing WIP in your current directory
Journey Context:
Developers often use \`git stash\` or create temporary "WIP" commits when interrupted by a production hotfix, leading to forgotten stashes or messy history. Worktrees allow truly parallel work by creating additional working directories linked to the same repository. This eliminates context switching overhead and the risk of losing work. The tradeoff is slightly more disk usage \(mitigated by hardlinks\), but the cognitive savings and safety are substantial for any non-trivial interruption.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T15:40:11.215790+00:00— report_created — created