git-worktree

Create, list, delete, and switch Git worktrees across branches.

Updated Mar 3, 2026
One-click install
npx skills add https://github.com/abudhahir/projects-pkm --skill git-worktree-abudhahir
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-worktree
Source: https://github.com/abudhahir/projects-pkm/tree/main/SKILLS/handbook-git-worktree/skills/git-worktree
Command: npx skills add https://github.com/abudhahir/projects-pkm --skill git-worktree-abudhahir

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines the management of Git worktrees, allowing developers to work on multiple branches simultaneously in isolated directories without the need for stashing.

Core Features & Use Cases

  • Create Worktrees: From local branches, remote branches, or new branches.
  • List Worktrees: View all active worktrees with detailed information (path, branch, commit).
  • Delete Worktrees: Clean up and remove worktrees.
  • Switch Worktrees: Get navigation commands for easy switching.
  • Use Case: Effortlessly switch between a feature branch, a hotfix branch, and the main branch for parallel development or quick bug fixes.

Quick Start

Use the git-worktree skill to create a new worktree from the remote branch 'develop'.

Frequently Asked Questions about git-worktree

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

FAQPage Schema
How do I work on multiple git branches at the same time without stashing changes?

Git worktrees enable parallel development across multiple branches by creating isolated directories outside your main repository, eliminating the need for stashing changes when switching contexts.

What is the best way to create a git worktree from a remote branch?

Creating a git worktree from a remote branch establishes an isolated development environment. This facilitates parallel work on features or hotfixes without affecting your main local repository directory.

How do I list all active git worktrees and their current branches?

Listing active git worktrees displays all current entries with detailed information including the file path, associated branch, and latest commit hash, allowing you to quickly review your parallel development environments.

Can I switch between git worktrees using navigation commands?

Yes, you can get navigation commands for switching between active git worktrees. This allows you to effortlessly transition between a feature branch, a hotfix, and the main branch for parallel development.

How do I delete a git worktree after finishing a feature branch?

Deleting a git worktree cleans up and removes the isolated directory. This safely removes the parallel development environment once your work on the specific feature or hotfix branch is complete.