using-git-worktrees
Installation
SKILL.md
Using Git Worktrees
Required Tools
| Tool | Required | Fallback | Install |
|---|---|---|---|
| git | ✅ Yes | No fallback — essential | Usually pre-installed |
| ripgrep (rg) | ⚡ Optional | grep → find | brew install ripgrep / cargo install ripgrep |
Cross-Platform Notes:
- macOS: Install GNU coreutils for
timeoutcommand:brew install coreutils(providesgtimeout)- Linux/WSL:
timeoutcommand is available by default
Cross-Platform Helper Functions
Add these functions to your shell session for cross-platform compatibility: