git-worktrees - Work with parallel Git branches using worktrees
Provides Git worktree commands and workflow patterns for working with multiple branches in separate directories.
Tags
Updated: 2026-12-05Typical Inputs
What this skill does
- Create linked worktrees
- List all worktrees
- Remove worktrees
- Move worktrees
- Lock worktrees
- Unlock worktrees
- Prune stale worktrees
- Repair worktree links
- Compare branch files
- Selectively check out files
- Cherry-pick commits
- Merge branches
Inputs
- Git repository
- Branch names
- Commit references
- Worktree paths
- Remote branch references
- Pull request references
Outputs
- Git worktree directories
- Worktree metadata
- Branch and commit changes
- Diff and comparison results
- Git command status
Requirements
- Git CLI
- Git repository
- Filesystem access
