worktree-management

Manage Git worktrees with Docker for parallel development workflows.

Updated May 11, 2017
One-click install
npx skills add https://github.com/sgotand/.dotfiles --skill worktree-management-sgotand
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: worktree-management
Source: https://github.com/sgotand/.dotfiles/tree/main/.claude/skills/worktree-management
Command: npx skills add https://github.com/sgotand/.dotfiles --skill worktree-management-sgotand

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the management of multiple Git worktrees, enabling parallel development on different branches without the complexity of traditional branching strategies.

Core Features & Use Cases

  • Parallel Development: Easily create, switch, and delete isolated worktree environments for concurrent tasks.
  • Containerized Workspaces: Integrates with Docker to provide isolated development environments for each worktree.
  • Use Case: When working on a new feature and a critical bug simultaneously, use this Skill to create separate worktrees for each, keeping your main branch clean and development focused.

Quick Start

Create a new worktree for the 'feature/new-ui' branch.

Frequently Asked Questions about worktree-management

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage Git worktrees for parallel development on multiple branches?

Git worktrees allow parallel development by creating isolated working directories for different branches. This Skill automates worktree creation, switching, and deletion to streamline concurrent feature and bug fix workflows.

Can I use Docker to create isolated development environments for each Git worktree?

Yes, Docker integration provides isolated containerized workspaces for each Git worktree. This ensures parallel development environments remain separated, managing associated Docker resources alongside worktree operations.

What is the best way to work on a new feature and a critical bug fix simultaneously in Git?

The best way to handle simultaneous tasks is using Git worktrees to create separate working directories for each branch. This keeps your main branch clean while enabling focused parallel development on both issues.

How do I create a new worktree for a feature branch like feature/new-ui?

To create a new worktree, specify the target branch name like feature/new-ui. The Skill handles setting up the isolated working directory and associated Docker environment for that specific feature branch.

Does Git worktree management handle the deletion of associated Docker resources?

Yes, worktree deletion includes associated Docker resource management. When you remove a worktree, the Skill facilitates cleaning up the corresponding isolated containerized workspace to prevent resource conflicts.

How do I list and switch between isolated worktree environments during parallel development?

The Skill supports listing all active worktrees and switching between them. This allows rapid context switching between isolated parallel development environments without traditional branch switching overhead.