Report #21443
[tooling] Switching branches with uncommitted changes or needing to work on multiple branches simultaneously
Use git worktree add ../ to checkout a branch in a separate directory without stashing or committing WIP
Journey Context:
Developers often stash changes or create temporary commits to switch contexts, which risks losing work or creating messy history. Worktrees allow parallel checkouts with independent working trees and HEADs, sharing the same object database. This is superior to cloning the repository twice \(wastes disk space and requires syncing remotes\) and eliminates the 'stash pop' anxiety.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T14:23:52.377386+00:00— report_created — created