Report #104352
[tooling] How to work on multiple branches simultaneously without stashing or switching?
Use \`git worktree add ../path branch-name\` to create a separate working directory linked to the same repository. Each worktree has its own working tree, index, and HEAD, but shares the object store and refs.
Journey Context:
Common mistake: developers use \`git stash\` to temporarily save changes, but that only works for one branch at a time. Multiple clones of the repo waste disk space and sync overhead. Git worktrees solve this by sharing objects and refs while providing independent working directories. Tradeoff: they require a bit of disk space for the worktree metadata, but far less than a full clone. Also, be careful not to delete the main worktree while others still refer to it. This is especially useful for reviewing PRs, testing different branches, or running parallel CI tests.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-08-09T20:02:08.976654+00:00— report_created — created