Skip to content

Git worktree commands and workflow patterns for parallel development across multiple branches in separate directories.

CCM score
48 of 100
skills.sh installs
1.3K
GitHub stars
1.9K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers creating, listing, moving, locking, pruning, and removing linked worktrees that share one .git database
  • Includes six workflow patterns: parallel hotfix, PR review, version comparison, long-running tests, stable reference, and selective merging
  • Provides a quick-reference table mapping common tasks to git worktree and related git checkout, cherry-pick, and merge commands
  • Designed for developers who need to context switch between branches without stashing changes

Install

$ npx -y skills add neolabhq/context-engineering-kit --skill git-worktrees -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Git Worktrees

Overview

Git worktrees enable checking out multiple branches simultaneously in separate directories, all sharing the same repository. Create a worktree instead of stashing changes or cloning separately.

Core principle: One worktree per active branch. Switch contexts by changing directories, not branches.

Core Concepts

ConceptDescription
Main worktreeOriginal working directory from git clone or git init
Linked worktreeAdditional directories created with git worktree add
Shared .gitAll worktrees share same Git object database (no duplication)
Branch lockEach branch can only be checked out in ONE worktree at a time
Worktree metadataAdministrative files in .git/worktrees/ tracking linked worktrees

Quick Reference

Details

Repository
github.com/neolabhq/context-engineering-kit
Category
Git & Releases
First seen
Jun 3, 2026

Questions

What does the git-worktrees skill do?

The git-worktrees skill gives Claude commands and workflow patterns for working on several branches at once, each in its own directory. It lets you switch context by changing directories instead of stashing changes or cloning the repository again.

When should I use the git-worktrees skill?

Use the git-worktrees skill when you work on multiple branches simultaneously, review PRs while developing, test in isolation, or compare implementations across branches. Each linked worktree shares the same Git object database, so no history is duplicated.

How do I install the git-worktrees skill?

Run npx -y skills add neolabhq/context-engineering-kit --skill git-worktrees -y in a project to install the git-worktrees skill. After that, the agent can create, list, move, lock and prune worktrees for you.

Where does git-worktrees rank in the Git & Releases category?

The git-worktrees skill is listed in the Git & Releases category on Claude Marketplaces, next to triage, git-guardrails-claude-code, setup-pre-commit, caveman-commit and pr. Its own focus is parallel development with multiple working directories, which those neighbours do not cover.

More from neolabhq/context-engineering-kit

All 62

Similar to Git Worktrees

More Git & Releases