Report #11570
[tooling] How to switch git branches without stashing or committing WIP changes
Use \`git worktree add ../ \` to checkout a branch in a new directory while keeping your current working tree untouched, allowing parallel work without stashing or committing unfinished work.
Journey Context:
Most developers default to \`git stash\` or temporary 'WIP' commits when they need to switch contexts, which risks losing work or polluting history. Worktrees create isolated working directories that share the same Git object database, allowing you to work on multiple branches simultaneously. The tradeoff is increased disk usage for branches with large binary files, but on modern SSDs this is negligible compared to the time saved avoiding stash/pop cycles and context-switching overhead.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T13:42:38.723817+00:00— report_created — created