Git Worktrees
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
Own this skill? Claim it
What it does
- Covers creating, listing, moving, locking, pruning, and removing linked worktrees that share one
.gitdatabase - 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 worktreeand relatedgit checkout,cherry-pick, andmergecommands - 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 -yInstalls 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
| Concept | Description |
|---|---|
| Main worktree | Original working directory from git clone or git init |
| Linked worktree | Additional directories created with git worktree add |
Shared .git | All worktrees share same Git object database (no duplication) |
| Branch lock | Each branch can only be checked out in ONE worktree at a time |
| Worktree metadata | Administrative 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- Decay1.2K
- Attach Review To Pr1.2K
- Git Notes1.2K
- Propose Hypotheses1.2K
- Setup Arxiv Mcp1.2K
- Load Issues1.2K
- Create Workflow Command1.2K
- Query1.2K
- Status1.2K
- Reset1.2K
- Setup Context7 Mcp1.2K
- Prompt Engineering1.6K
- Context Engineering1.5K
- Thought Based Reasoning1.5K
- Reflect1.5K
- Write Concisely1.4K
- Multi Agent Patterns1.4K
- Kaizen1.4K
- Critique1.4K
- Judge With Debate1.4K
- Memorize1.4K
- Update Docs1.4K
- Root Cause Tracing1.4K
- Brainstorm1.4K
Similar to Git Worktrees
More Git & Releaseshandbook-git-worktreePluginNikiforovAll/claude-code-rules143 starsGit worktree management for working on multiple branches simultaneously
git-advanced-workflowsSkillwshobson/agents20.5K installsAdvanced Git techniques for rewriting history, recovering lost work, and isolating regressions safely.
git-workflow-strategySkillaj-geddes/useful-ai-prompts490 installsGit branching workflow guide covering GitFlow, GitHub Flow, and Trunk-Based Development for team collaboration.
git-workflowSkillbobmatnyc/claude-mpm-skills584 installsReference guide of Git patterns covering commits, branching, conflicts, history, tags, and recovery commands.
git-workflow-and-versioningSkilladdyosmani/agent-skills81.2K installsStructured git workflow guide covering trunk-based development, atomic commits, and parallel work with worktrees.