Skip to Content
DocumentationGuidesContext Switching

Context Switching Without The Tax

Instead of repeatedly stashing and switching one checkout, keep each task in a dedicated worktree directory.

Benefits:

  • fewer stash/unstash cycles
  • less risk of stash conflicts
  • less accidental cross-branch contamination
  • faster interrupts, reviews, and hotfixes

Recommended pattern:

  1. Start a branch worktree with worktree branch <name>.
  2. Keep each ticket in a separate worktree folder.
  3. Reopen any active worktree with worktree open.
Last updated on