Worktree

Create, list, and remove git worktrees so several branches can be open at once without anyone switching a branch out from under anyone else — the default way to work when agents and humans share a repository. Modes: a new branch in its own checkout, an existing PR checked out for review, list, remove, prune. Worktrees land in a sibling directory, each with its own dependencies and its own local config, copied rather than symlinked. Backed by a zero-dep Node script. Use when the user says "worktree", "check out that PR locally", "work on two branches at once", "haz un worktree", "spin up a branch in parallel", or needs the current checkout free without losing what is in it.

pappcorn 4d09c3c 6.3 KB Updated

File contents

pappcorn/universe/tree/main/packages/best-practices-git/skills/worktree commit 4d09c3c012

Frequently asked questions

npx skillmds@latest add pappcorn/worktree