What problem does it solve?
Working on multiple features or bug fixes simultaneously in a single Git repository can lead to constant branch switching, context loss, and potential conflicts. This skill simplifies parallel development using Git worktrees.
Core Features & Use Cases
- Worktree Creation & Management: Provides scripts (
create-worktree.sh, remove-worktree.sh) to easily create new worktrees for feature branches, list active worktrees, and clean up completed ones.
- Parallel Development Support: Enables developers to isolate work on separate branches in distinct directories, allowing seamless switching between features without affecting the main project.
- Worktree Synchronization: Guides on how to sync worktrees with the main branch to keep them up-to-date before merging, minimizing merge conflicts.
- Best Practices: Offers advice on using worktrees for long-running features, consistent naming, and regular cleanup, promoting efficient workflows.
- Use Case: A developer needs to work on two independent features concurrently without constantly stashing changes or switching branches. This skill allows them to create separate Git worktrees for each feature, isolating their development environments and enabling parallel work.
Quick Start
Create a new Git worktree for a branch named 'feature-auth' in a sibling directory, then list all active worktrees.