Report #39853
[tooling] Need to work on multiple git branches simultaneously without constant stashing and switching
Use \`git worktree add ../ \` to create a separate linked directory for the branch. Work in parallel, then remove with \`git worktree remove \` and \`git worktree prune\` to clean up stale metadata.
Journey Context:
Developers often \`git stash\` and \`git switch\` repeatedly when context-switching between feature branches and hotfixes. This is error-prone \(forgetting stashes\) and slow \(rebuilding state\). Worktrees create independent working directories linked to the same repository, allowing truly parallel work. The common mistake is manually deleting the worktree folder without using \`git worktree remove\`, which leaves stale administrative files; always use the command or \`prune\` to prevent repository corruption.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T21:21:53.625304+00:00— report_created — created