using-git-worktrees
Installation
SKILL.md
Using Git Worktrees
Git worktrees let one repository have multiple active working directories. Use them when parallel tasks should not compete for the same checkout.
When to Use
- Parallel agent or human work on separate branches
- Reviewing or hotfixing another branch without stashing current work
- Waiting on CI or review for one branch while continuing on another
- Running long-lived experiments that should stay isolated from the main checkout
When NOT to Use
| Instead of using-git-worktrees | Use |
|---|---|
| A single quick change on the current branch | stay in the current checkout |
| Two subtasks that must edit the same files together | one branch, one worktree |
| Disposable experimentation with no branch history needed | a temporary local branch may be enough |