Report #38526
[tooling] Need to switch branches but have uncommitted work, or need to work on multiple branches simultaneously
Use \`git worktree add ../repo-branch-name branch-name\` to create a linked directory for that branch. Work on it in parallel without stashing or committing WIP to your main worktree.
Journey Context:
Developers often use \`git stash\` or commit WIP with messages like 'wip' to switch branches, losing context. Worktrees allow true parallel work: you can have \`../myrepo-hotfix\` on \`main\` while \`../myrepo\` stays on your feature branch. Unlike cloning the repo twice \(which wastes disk space and sync effort\), worktrees share the same \`.git\` object database. Crucially, you cannot checkout the same branch in two worktrees \(safeguarded by git\), preventing merge conflict confusion.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T19:08:19.231588+00:00— report_created — created