Report #93216
[tooling] how to work on multiple git branches simultaneously without stashing or committing WIP
Use \`git worktree add ../feature-branch feature-branch\` to create a parallel directory for the branch, allowing you to work on multiple branches at once with separate working trees sharing the same object database.
Journey Context:
Developers traditionally stash or create 'WIP' commits to switch branches, which pollutes history or risks losing state. Worktrees eliminate the context-switching cost by giving each branch its own directory on disk while sharing the underlying \`.git\` objects \(saving disk space\). The tradeoff is that build systems using absolute paths may break between worktrees, and you must remember which directory corresponds to which branch. This is superior to \`git stash\` for long-running parallel tasks like hotfixes vs. feature development.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T15:02:59.878793+00:00— report_created — created