git-worktree-manager

Create, list, navigate, and remove git worktrees in a .worktrees directory.

Updated Mar 13, 2026
One-click install
npx skills add https://github.com/knowledgexhunta/devops-toolkit --skill git-worktree-manager-knowledgexhunta
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-worktree-manager
Source: https://github.com/knowledgexhunta/devops-toolkit/tree/main/plugins/devops-toolkit/skills/git-worktree-manager
Command: npx skills add https://github.com/knowledgexhunta/devops-toolkit --skill git-worktree-manager-knowledgexhunta

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Parallel development across multiple branches can be difficult without isolated workspaces. This Skill provides a structured approach to create, manage, and navigate multiple worktrees alongside a central repository, avoiding repeated stashing or branch switching.

Core Features & Use Cases

  • Worktree orchestration: Create, list, and navigate to dedicated .worktrees/ directories for feature, bugfix, or experiment branches.
  • Context-aware development: Start Claude Code within the correct worktree context to keep changes isolated.
  • Lifecycle management: Cleanly remove worktrees after merges and ensure .gitignore reflects the workspace layout.

Quick Start

From the repository root, create a new worktree for your feature branch and start Claude Code in that worktree.

Frequently Asked Questions about git-worktree-manager

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

FAQPage Schema
How do I manage git worktrees for parallel development across multiple branches?

Git worktree management for parallel development involves creating isolated workspaces under a dedicated .worktrees directory, allowing you to work on multiple branches simultaneously without repeated stashing or branch switching.

What is the best way to work on multiple git branches at the same time without switching?

Working on multiple git branches simultaneously is best handled by creating isolated worktrees in a central .worktrees directory, keeping each branch's changes separate and avoiding the friction of constant stashing or branch switching.

How do I set up a standardized git worktree workflow with a dedicated command?

A standardized git worktree workflow uses a dedicated gwt shell function to create, list, navigate, and remove worktrees, enforcing consistent directory structure and recovery-safe operations across your local repositories.

Do I need to manually update .gitignore when creating new git worktrees?

No, when creating new git worktrees you do not need to manually update .gitignore, as this workflow automatically ensures .gitignore reflects the workspace layout and includes the dedicated .worktrees directory.

How do I safely remove git worktrees after merging a branch?

To safely remove git worktrees after merging a branch, use the provided gwt command workflow which enforces recovery-safe operations and cleanly deletes the worktree alongside its associated branch context.

Can I start an AI coding assistant within a specific git worktree context?

Yes, you can start Claude Code within a specific git worktree context to keep changes isolated, ensuring the assistant operates exclusively within the correct parallel development workspace for that branch.