SKILL

using-git-worktrees

适用于开始需要与当前工作区隔离的功能开发,或在执行实现计划之前——通过原生工具或 git worktree 回退确保存在隔离的工作区

机器翻译
查看英文原文

Use when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback

适用对象:软件开发与测试。自动收录 · 待核查。

原作者说明节选

从固定版本的 SKILL.md 提取,保留原文语言。以下内容属于作者说明,本站尚未验证安装、兼容或运行结果。

查看英文原文

原文涵盖的主题

  • Using Git Worktrees
  • Overview
  • Step 0: Detect Existing Isolation
  • Step 1: Create Isolated Workspace
  • 1a. Native Worktree Tools (preferred)
  • 1b. Git Worktree Fallback
  • Directory Selection
  • Safety Verification (project-local directories only)

Ensure work happens in an isolated workspace. Prefer your platform's native worktree tools. Fall back to manual git worktrees only when no native tool is available. Core principle: Detect existing isolation first. Then use native tools. Then fall back to git. Never fight the harness. Announce at start: "I'm using the using-git-worktrees skill to set up an isolated workspace." Before creating anything, check if you are already in an isolated workspace. Submodule guard: GITDIR != GITCOMMON is also true inside git submodules. Before concluding "already in a worktree," verify you are not in a submodule: If GITDIR != GITCOMMON (and not a submodule): You are already in a linked worktree. Skip to Step 2 (Project Setup). Do NOT create another worktree. Report with branch state: On a branch: "Already in isolated workspace at on branch ." Detached HEAD: "Already in isolated workspace at (detached HEAD, externally managed). Branch creation needed at finish time." If GITDIR == GITCOMMON (or in a submodule): You are in a normal repo checkout. Has the user already indicated their worktree preference in your instructions? If not, ask for consent before creating a worktree: "Would you like me to s

这里只展示节选,请以完整原文和当前要求为准。

来源仓库
obra/superpowers
源文件
skills/using-git-worktrees/SKILL.md
固定版本
22f0b463e7a5e579904dd6211a520321035526f7
阅读完整原作者说明 ↗

来源与内容状态

本条为自动发现的元数据,尚未完成人工文档核查;适用性与运行结果待核查。

原作者:obra/superpowers · 原作者仓库元数据。文档核查:未核查。最近来源检查:2026-11-09T17:01:01.775Z。

分类由名称、说明与路径规则生成,分类不代表已核实适配。

许可与权利归属

MIT。第三方内容及版权归原作者,使用条件以原文为准。

许可原文 ↗

本站没有因同步、复制或用户自报成功而将资源标为运行验证通过。

限制与注意事项

  • 元数据收录不代表本站已经安装、适配、实测或进行安全审查。