# Using Git Worktree

> Use git worktrees to develop multiple branches in parallel without stashing or context switching overhead. Use when handling concurrent features, hotfixes, and review tasks from the same repository.

- Skill: `nikopj01/using-git-worktree` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add nikopj01/using-git-worktree`
- Raw SKILL.md: https://api.skillmd.com/api/skills/nikopj01/using-git-worktree/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: nikopj01 (https://skillmd.com/u/nikopj01)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/nikopj01/using-git-worktree

---


# Using Git Worktree

## Workflow
1. Create a dedicated worktree per task/branch.
2. Keep dependency installs and build artifacts isolated per worktree as needed.
3. Run tests in each worktree before commit and before push.
4. Remove stale worktrees after merge to avoid confusion.
5. Keep naming consistent so branch ownership and purpose stay clear.

