Skill using-git-worktrees
Creates and manages isolated Git worktrees for parallel agents, risky experiments, or long-running feature work while preserving the user's current checkout. Use before concurrent branch edits or when isolation makes rollback safer. Not for a trivial one-file change that is already isolated.
- Bintang GitHub
- 100
- File
- 1
- Commit terakhir
- 26 Agu 2026
- Lisensi
- MIT
- Tool yang diizinkan
- —
Apa fungsi skill using-git-worktrees?
Creates and manages isolated Git worktrees for parallel agents, risky experiments, or long-running feature work while preserving the user's current checkout. Use before concurrent branch edits or when isolation makes rollback safer. Not for a trivial one-file change that is already isolated.
Cara install skill using-git-worktrees
Setiap perintah menyalin folder skill ke direktori skills client. Restart client atau mulai sesi baru untuk memuatnya.Install skill using-git-worktrees di Plugin
/plugin marketplace add thiientv/godmode /plugin install godmode@godmode
Install skill using-git-worktrees di Claude Code
~/.claude/skills/using-git-worktrees/SKILL.md
$ npx degit thiientv/godmode/skills/using-git-worktrees ~/.claude/skills/using-git-worktreesInstall skill using-git-worktrees di Claude Code (project)
.claude/skills/using-git-worktrees/SKILL.md
$ npx degit thiientv/godmode/skills/using-git-worktrees .claude/skills/using-git-worktreesInstall skill using-git-worktrees di Codex
~/.agents/skills/using-git-worktrees/SKILL.md
$ npx degit thiientv/godmode/skills/using-git-worktrees ~/.agents/skills/using-git-worktreesInstall skill using-git-worktrees di Gemini CLI
~/.gemini/skills/using-git-worktrees/SKILL.md
$ npx degit thiientv/godmode/skills/using-git-worktrees ~/.gemini/skills/using-git-worktreesInstall skill using-git-worktrees di Claude.ai
npx degit thiientv/godmode/skills/using-git-worktrees using-git-worktrees && zip -r using-git-worktrees.zip using-git-worktrees # claude.ai → Customize → Skills → + → Create skill → Upload a skill → using-git-worktrees.zip
SKILL.md
Lihat di GitHubUsing Git Worktrees
Isolation is a safety boundary, not a way to hide unreviewed changes.
Before creating one
- Inspect
git status, current branch, repository root, and existing worktrees. - Preserve uncommitted user work; never reset, checkout, or clean it away.
- Choose an explicit branch name and a worktree path outside the main working tree when practical.
- Confirm the base ref and whether ignored/generated files are needed.
Create safely
git worktree list
git worktree add ../<repo>-<task> -b <task-branch> <base-ref>
Run repository setup in the new worktree, record the exact base commit, and keep secrets and local environment files out of the branch. Do not use the same worktree for two writers.
Finish or discard
- Review and test the branch before integrating it.
- Merge or cherry-pick only the intended commits after checking the diff.
- Remove a disposable worktree only after confirming its commits and needed artifacts are preserved:
git worktree remove ../<repo>-<task>
git worktree prune
Do not force removal when it contains unreviewed work. If a worktree is stale, inspect its branch and status before deciding whether it is recoverable.
Completion condition
The branch's base, ownership, integration path, and cleanup decision are explicit; the main checkout remains intact.
Berkas dalam skill ini
1Pertanyaan seputar skill using-git-worktrees
Bagaimana cara install skill using-git-worktrees di Claude Code?
Jalankan npx degit thiientv/godmode/skills/using-git-worktrees ~/.claude/skills/using-git-worktrees. Claude Code memuat skill dari ~/.claude/skills (semua proyek) atau .claude/skills (satu proyek) dan menggunakan skill saat deskripsinya cocok dengan tugas.
Client mana saja yang bisa menggunakan skill using-git-worktrees?
Client apa pun yang membaca format Agent Skills: Claude Code, Codex, Gemini CLI, dan claude.ai (unggah sebagai ZIP). Script dalam skill hanya berjalan di client yang mengizinkan eksekusi kode.