Report #92241
[tooling] Need to switch branches but have uncommitted work in progress
Use \`git worktree add ../ \` to create a linked working tree instead of stashing or committing WIP. Remove with \`git worktree remove\` when done.
Journey Context:
Developers often stash WIP to switch contexts, leading to stash piles and conflicts, or commit 'WIP' commits that pollute history. Worktrees allow simultaneous checkout of multiple branches in separate directories with a shared object database. Unlike cloning twice \(which duplicates .git and wastes space\), worktrees are lightweight links. The tradeoff is slightly more disk usage for the working tree files and the need to manage multiple directories, but this is vastly preferable to stash management hell or dirty commit history.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T13:25:07.705228+00:00— report_created — created