celestiaorg/celestia-engineering/git-worktree

Claude Code and agent skill by celestiaorg/celestia-engineering

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Manage Git worktrees for isolated parallel development without branch switching

Install

npx vskill@latest install celestiaorg/celestia-engineering/git-worktree

SKILL.md

Git Worktree Skill

Manage isolated development environments using Git worktrees.

When to Use

  • Working on multiple features simultaneously
  • Need to review a PR while working on something else
  • Testing changes without affecting your main workspace
  • Running long builds while continuing development

Quick Commands

Create worktree for a new branch
bash
git worktree add ../feature-xyz -b feature/xyz
Create worktree for existing branch
bash
git worktree add ../pr-review origin/pr-branch
List all worktrees
bash
git worktree list
Remove worktree
bash
git worktree remove ../feature-xyz
Clean up stale worktrees
bash
git worktree prune

Workflow Patterns

Pattern 1: Feature Development
bash
# Create isolated workspace for new feature
git worktree add ../my-feature -b feature/new-thing
# Work in the new worktree
cd ../my-feature
# When done, merge and cleanup
git checkout main
git merge feature/new-thing
git worktree remove ../my-feature
git branch -d feature/new-thing
Pattern 2: PR Review
bash
# Create worktree for PR review without switching branches
git fetch origin pull/123/head:pr-123
git worktree add ../pr-123-review pr-123
# Review in separate directory
cd ../pr-123-review
go test ./...
# Cleanup after review
git worktree remove ../pr-123-review
git branch -D pr-123
Pattern 3: Hotfix While Working
bash
# You're working on feature, need to fix prod bug
git worktree add ../hotfix -b hotfix/urgent-fix origin/main
# Fix bug in hotfix worktree
cd ../hotfix
# ... make fixes ...
git commit -am "fix: urgent bug"
git push origin hotfix/urgent-fix
# Return to feature work
cd ../my-feature

Directory Convention

~/code/
├── celestia-app/ # Main worktree (main branch)
├── celestia-app-feature/ # Feature worktree
├── celestia-app-hotfix/ # Hotfix worktree
└── celestia-app-review/ # PR review worktree

Best Practices

  1. Naming: Use descriptive directory names matching the branch
  2. Location: Keep worktrees as siblings to main repo
  3. Cleanup: Remove worktrees when done to avoid clutter
  4. Prune: Run git worktree prune periodically

Common Issues

"fatal: is already checked out"

The branch is already checked out in another worktree. Use a different branch or remove the existing worktree.

Stale worktrees after deletion

Run git worktree prune to clean up references to deleted worktree directories.

Submodules not initialized

Run git submodule update --init in the new worktree.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/celestiaorg/celestia-engineering/git-worktree/badge)](https://verified-skill.com/skills/celestiaorg/celestia-engineering/git-worktree)

Something wrong with this skill or its page? Tell us.