🎯

using-git-worktrees

🎯Skill

from alexei-led/claude-code-config

VibeIndex|
What it does

Enables parallel development by creating isolated git worktrees for working on multiple branches simultaneously without context switching.

πŸ“¦

Part of

alexei-led/claude-code-config(15 items)

using-git-worktrees

Installation

πŸ“‹ No install commands found in docs. Showing default command. Check GitHub for actual instructions.
Quick InstallInstall with npx
npx skills add alexei-led/claude-code-config --skill using-git-worktrees
1Installs
-
AddedFeb 4, 2026

Skill Details

SKILL.md

Creates isolated git worktrees for parallel development. Use when starting feature work needing isolation or working on multiple branches simultaneously. Not for simple branch switching or basic git operations.

Overview

# Git Worktrees

Git worktrees create isolated workspaces sharing the same repository, allowing work on multiple branches simultaneously.

Announce at start: "I'm using the using-git-worktrees skill to set up an isolated workspace."

Quick Start

```bash

# Create worktree with new branch

git worktree add .worktrees/feature-auth -b feature/auth

# Create worktree from existing branch

git worktree add .worktrees/bugfix bugfix/issue-123

# List worktrees

git worktree list

# Remove worktree

git worktree remove .worktrees/feature-auth

```

Directory Selection

  1. Check existing: .worktrees/ or worktrees/
  2. Check CLAUDE.md for preference
  3. Ask user if neither exists

Safety Requirements

Before creating project-local worktree:

```bash

# Verify directory is in .gitignore

grep -q "^\.worktrees/$" .gitignore || grep -q "^worktrees/$" .gitignore

```

If NOT in .gitignore: Add it immediately and commit.

References

  • [WORKFLOW.md](WORKFLOW.md) - Detailed workflow steps
  • [scripts/](scripts/) - Helper scripts