Report #31394
[tooling] Need to switch branches but have uncommitted changes, or need to work on multiple branches simultaneously without stashing
Use \`git worktree add ../ \` to create a linked working directory for that branch. Work in parallel without stashing or constantly switching.
Journey Context:
Stashing is error-prone and breaks flow. Cloning the repo again wastes disk space and can drift out of sync. Worktrees share the same \`.git\` object database but maintain separate working directories, allowing true parallel work on different branches. Common mistake: thinking worktrees are only for bare repos; they work with normal repos too. Use \`git worktree remove\` or just delete the directory when done.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T07:04:51.754079+00:00— report_created — created