Git #worktree allows developers to work on multiple branches simultaneously without stashing changes or switching contexts. You can switch between branches by changing directories. BONUS: Worktrees are a great way to work with AI Agents, too.
The feature works best with bare repositories and supports creating new branches, checking out existing remote branches, and managing pull requests. Each worktree maintains its working directory, eliminating the need for git stash when switching between tasks. More info at the usual place.

Git Worktree
Git Worktree

Git worktree is an addition that comes automatically with [[git]] and can help you switching branches without the need of git stash and git checkout branch etc.

Simon Späti's Second Brain