worktree-management

Create, switch, and remove git worktrees via PowerShell scripts.

408|65|Updated Dec 12, 2024
One-click install
npx skills add https://github.com/deadlock-mod-manager/deadlock-mod-manager --skill worktree-management-deadlock-mod-manager
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: worktree-management
Source: https://github.com/deadlock-mod-manager/deadlock-mod-manager/tree/main/.agents/skills/worktree-management
Command: npx skills add https://github.com/deadlock-mod-manager/deadlock-mod-manager --skill worktree-management-deadlock-mod-manager

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Developers managing multiple git branches and worktrees often face complex workflows and manual setup challenges that hinder productivity.

Core Features & Use Cases

  • Create and manage git worktrees: Easily add, list, switch, and remove worktrees to support parallel development streams.
  • Scene Management: Simplifies handling multiple branches for feature development or bug fixes without disrupting main workflows.
  • Use Case: A developer wants to isolate a feature branch in a separate directory, switch between worktrees, and clean up unused worktrees automatically with minimal commands.

Quick Start

Use the worktree-management skill to create a new worktree named 'feature-x' and start working on it in PowerShell.

Frequently Asked Questions about worktree-management

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

FAQPage Schema
How do I create and manage git worktrees for parallel development?

Git worktrees allow you to manage multiple branches in separate directories simultaneously. This skill automates the creation, listing, switching, and removal of worktrees to streamline parallel feature development without disrupting your main workflow.

What is the best way to isolate a feature branch in a separate directory?

Isolating a feature branch requires creating a dedicated worktree directory. This skill simplifies branch isolation by automating the setup and management of separate working directories for bug fixes or new features with minimal commands.

Can I use this to automate git worktree cleanup in PowerShell?

Yes, you can automate git worktree cleanup in PowerShell. The skill provides scripts designed for Windows environments that automatically remove unused worktrees and clean up your repository workspace efficiently.

Does this git worktree skill work on Windows environments?

Yes, this git worktree skill is designed primarily for Windows environments. It integrates directly with PowerShell to execute scripts that automate worktree setup and management tasks for your version control workflows.

How do I switch between worktrees without disrupting my main branch?

Switching between worktrees lets you change active development streams without affecting your main branch. The skill utilizes scripts to quickly switch your working context across different isolated feature directories.