Git Worktrees

Use when working on multiple features simultaneously. Creates isolated workspaces without branch switching, enabling parallel development.

8 stars 3 forksGit & Code Review Plugin marketplace

Install

Claude Code plugin
/plugin marketplace add Freddy-CHEN-ux/00_claude_skills

The repo is a Claude Code plugin marketplace. Run /plugin afterwards to pick the plugin that includes this skill.

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add Freddy-CHEN-ux/00_claude_skills --skill git-worktrees
Manual install
git clone --depth 1 https://github.com/Freddy-CHEN-ux/00_claude_skills.git /tmp/00_claude_skills
mkdir -p ~/.claude/skills
cp -r /tmp/00_claude_skills/skills/git-worktrees ~/.claude/skills/git-worktrees

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Git Worktrees

## Core Principle

Work on multiple features in parallel using git worktrees instead of constantly switching branches.

## When to Use This Skill

- Working on multiple features simultaneously
- Need to quickly switch context without stashing
- Want to run tests on one branch while working on another
- Comparing implementations across branches
- Client requests urgent fix while working on feature

## What Are Git Worktrees?

Git worktrees allow you to have multiple working directories for the same repository, each checked out to a different branch.

**Traditional way:**
```bash
git checkout feature-a
[work on feature-a]
git stash
git checkout feature-b
[work on feature-b]
git stash
git checkout feature-a
git stash pop
```

**With worktrees:**
```bash
# Both branches available simultaneously in different directories
cd ../project-feature-a    # Work on feature-a
cd ../project-feature-b    # Work on feature-b
cd ../project-hotfix        # Work on hotfix
```

## Benefits

✅ **No stashing**: Changes stay in their worktree
✅ **Parallel work**: Different features in different terminals
✅ **Independent testing**: Test one branch while coding another
✅ **Quick context switching**: Just `cd` to different directory
✅ **Clean state**: Each worktree is independent

## Git Worktree Basics

### Creating a Worktree
Read the full skill on GitHub

Details

Skill name
git-worktrees
Path
skills/git-worktrees/SKILL.md
Repo updated
10 January 2026

FAQ

What does the Git Worktrees skill do?

Use when working on multiple features simultaneously. Creates isolated workspaces without branch switching, enabling parallel development.

How do I install the Git Worktrees skill?

Claude Code plugin: /plugin marketplace add Freddy-CHEN-ux/00_claude_skills. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Git Worktrees popular?

It lives in Freddy-CHEN-ux/00_claude_skills, which has 8 GitHub stars and 3 forks.

Related skills

Browse the most popular Claude skills, all git & code review skills, or write your own with the skills generator.