worktree-ops

Installation
SKILL.md

Worktree Management

Git worktrees let you check out multiple branches of the same repository into separate directories simultaneously. Each worktree has its own working directory and index while sharing the same .git object store and history. This is useful for running parallel development sessions, reviewing a PR while mid-feature, or isolating experimental changes without stashing or committing half-finished work.

Core Principles

Principle Meaning
Isolation without duplication Worktrees share git history but keep working directories separate -- no need to clone the repo again
Safety first Always check for uncommitted changes and unpushed commits before removing a worktree
Clean up after yourself Stale worktree entries and orphaned branches accumulate -- prune regularly
Convention over configuration Use a consistent directory layout (.worktrees/<name>/) and branch naming (worktree-<name>)

Quick Reference

Command What it does When to use
git worktree add <path> -b <branch> Create a new worktree with a new branch Starting parallel work on a new task
git worktree list Show all worktrees with their branches and paths Checking what is active
Related skills

More from krzysztofsurdy/code-virtuoso

Installs
12
GitHub Stars
17
First Seen
Apr 14, 2026