Git Worktree

Safely guide Git worktree workflows: creating a separate checkout for a branch or task, listing active worktrees, moving, locking, unlocking, removing, repairing, or pruning worktrees, and resolving errors caused by a branch already being checked out elsewhere. Use this skill whenever a user mentions `git worktree`, parallel Git checkouts, working on multiple branches at once, a worktree path that was moved or deleted manually, or wants to clean up a stale worktree. Before proposing a state-changing command, inspect the repository and affected worktrees, preserve Git's safeguards, and make destructive consequences explicit.

tsubakimoto cbc5468 4 files · 21.0 KB Updated

File contents

tsubakimoto/skills/tree/main/git-worktree commit cbc5468186

Frequently asked questions

npx skillmds@latest add tsubakimoto/git-worktree