git-worktree
Installation
SKILL.md
Git Worktree - Parallel Development
Overview
Git worktrees enable multiple working directories from a single repository. Each worktree has its own branch while sharing the same Git object database.
Core principle: Check worktree status, create worktree for parallel work, reference cleanup commands as needed.
When to Use
Use worktrees when:
- Working on multiple branches simultaneously
- Emergency hotfix needed without disrupting current work
- Reviewing PRs in isolation
- Testing across branches without stashing
Avoid when:
- Quick branch switch (use
git switchinstead) - Single feature, single branch workflow
Related skills