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
