Report #47921
[tooling] Need to switch branches but have uncommitted work in progress
Use git worktree add ../feature-branch feature-branch to checkout the branch in a new directory while keeping your current branch intact, allowing parallel work without stashing or committing WIP
Journey Context:
Developers often stash or create 'WIP' commits to switch branches, polluting history or losing context. Worktrees create linked working directories sharing the same Git object database, allowing true parallel work without disk overhead of separate clones. Unlike cloning twice \(which requires pushing/pulling between copies\), worktrees share storage and updates are immediate. Common mistake: creating worktrees inside the main working tree causes git status confusion; always place them outside or in a dedicated ../worktrees directory.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T10:54:56.053675+00:00— report_created — created