·worktrees

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

22安装·0热度·@neolabhq

安装

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

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 worktrees
分类
>_效率工具
认证
收录时间
2026-02-01
更新时间
2026-02-18

快速解答

什么是 worktrees?

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

如何安装 worktrees?

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

这个 Skill 的源码在哪?

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