← Back to registry
Skill
using-git-worktrees
Use when starting feature work that needs isolation from current workspace or before executing implementation plans. Create isolated git worktrees with safe directory selection and baseline verification.
Install
One-line setup
Copy and run this in your terminal to install the skill. Re-run to reinstall and update an existing install.
npx codex-skills-registry@latest --skill=devtools/using-git-worktrees --yesUsing Git Worktrees
Create isolated workspaces without disrupting the main working tree.
Quick Start
- Choose a worktree root (prefer
.worktrees/if present). - Ensure the worktree path is ignored by git.
- Create the worktree for the target branch.
- Run project setup and verify clean status.
Guardrails
- Don’t create worktrees in unignored paths.
- Keep one branch per worktree.
- Verify
git statusis clean before starting work.
References
- Extended examples:
references/examples.md