What problem does it solve?
This Skill streamlines the process of creating isolated development environments using Git worktrees, ensuring a clean separation between different branches of work and preventing accidental interference.
Core Features & Use Cases
- Isolated Workspaces: Create separate directories for different branches without duplicating the entire repository.
- Smart Directory Selection: Automatically determines the best location for new worktrees based on project conventions or user preference.
- Safety Verification: Ensures project-local directories are ignored by Git before creating a worktree to prevent accidental commits.
- Automated Setup: Detects and runs necessary dependency installations (npm, pip, cargo, go) for the new worktree.
- Baseline Testing: Verifies the new worktree starts with a clean slate by running project tests.
- Use Case: When starting a new feature like "user authentication," you can use this skill to create a dedicated, isolated worktree for that feature, allowing you to continue working on other tasks or bug fixes in your main branch without conflict.
Quick Start
Use the using-git-worktrees skill to create a new worktree for the 'feature/user-profile' branch in the '.worktrees' directory.