用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/celestiaorg/celestia-engineering --skill git-worktree命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | git-worktree |
| description | Manage Git worktrees for isolated parallel development without branch switching |
Manage isolated development environments using Git worktrees.
git worktree add ../feature-xyz -b feature/xyz
git worktree add ../pr-review origin/pr-branch
git worktree list
git worktree remove ../feature-xyz
git worktree prune
# 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
# 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
# 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
~/code/
├── celestia-app/ # Main worktree (main branch)
├── celestia-app-feature/ # Feature worktree
├── celestia-app-hotfix/ # Hotfix worktree
└── celestia-app-review/ # PR review worktree
git worktree prune periodicallyThe branch is already checked out in another worktree. Use a different branch or remove the existing worktree.
Run git worktree prune to clean up references to deleted worktree directories.
Run git submodule update --init in the new worktree.