worktrees
✓在同時處理多個分支、無需存儲的上下文切換、開發時審查 PR、獨立測試或比較跨分支的實現時使用 - 提供 git worktree 命令和工作流程模式,用於多個工作目錄的並行開發。
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
詳情
- 分類
- >_效率工具
- 來源
- skills.sh
- 收錄時間
- 2026-02-01