Worktrees in Git
From the Git cheat sheet · Advanced Techniques · verified Jul 2026
Worktrees
Work on multiple branches simultaneously in different directories
bash
# Add worktree
git worktree add <path> <branch>
git worktree add ../feature-branch feature
# List worktrees
git worktree list
# Remove worktree
git worktree remove <path>💡 Each worktree is a separate working directory
⚡ Work on multiple branches without stashing
✅ Great for testing while developing