·git:worktrees
</>

git:worktrees

在同时处理多个分支、无需存储的上下文切换、开发时审查 PR、独立测试或比较跨分支的实现时使用 - 提供 git worktree 命令和工作流程模式,用于多个工作目录的并行开发。

82安装·16热度·@neolabhq

安装

$npx skills add https://github.com/neolabhq/context-engineering-kit --skill git:worktrees

如何安装 git:worktrees

通过命令行快速安装 git:worktrees AI 技能到你的开发环境

  1. 打开终端: 打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 运行安装命令: 复制并运行以下命令:npx skills add https://github.com/neolabhq/context-engineering-kit --skill git:worktrees
  3. 验证安装: 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

来源:neolabhq/context-engineering-kit。

SKILL.md

查看原文

Git worktrees enable checking out multiple branches simultaneously in separate directories, all sharing the same repository. Create a worktree instead of stashing changes or cloning separately.

Core principle: One worktree per active branch. Switch contexts by changing directories, not branches.

| Main worktree | Original working directory from git clone or git init | | Linked worktree | Additional directories created with git worktree add | | Shared .git | All worktrees share same Git object database (no duplication) | | Branch lock | Each branch can only be checked out in ONE worktree at a time |

在同时处理多个分支、无需存储的上下文切换、开发时审查 PR、独立测试或比较跨分支的实现时使用 - 提供 git worktree 命令和工作流程模式,用于多个工作目录的并行开发。 来源:neolabhq/context-engineering-kit。

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/neolabhq/context-engineering-kit --skill git:worktrees
分类
</>开发工具
认证
收录时间
2026-03-02
更新时间
2026-03-11

Browse more skills from neolabhq/context-engineering-kit

快速解答

什么是 git:worktrees?

在同时处理多个分支、无需存储的上下文切换、开发时审查 PR、独立测试或比较跨分支的实现时使用 - 提供 git worktree 命令和工作流程模式,用于多个工作目录的并行开发。 来源:neolabhq/context-engineering-kit。

如何安装 git:worktrees?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/neolabhq/context-engineering-kit --skill git:worktrees 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

这个 Skill 的源码在哪?

https://github.com/neolabhq/context-engineering-kit