什麼是 git-worktree?
在與專案根目錄相同的目錄層級為目前儲存庫建立一個 git 工作樹。此技能可自動建立分支、根據專案-T-分支格式命名目錄以及初始專案設定(例如,依賴項安裝)。當使用者想要在不切換目前工作空間的情況下處理新功能或修復時,請使用此功能。 來源:hu-wentao/wyatt_skills。
在與專案根目錄相同的目錄層級為目前儲存庫建立一個 git 工作樹。此技能可自動建立分支、根據專案-T-分支格式命名目錄以及初始專案設定(例如,依賴項安裝)。當使用者想要在不切換目前工作空間的情況下處理新功能或修復時,請使用此功能。
透過命令列快速安裝 git-worktree AI 技能到你的開發環境
來源:hu-wentao/wyatt_skills。
This skill allows you to quickly create a new git worktree for the current project. The worktree is created in the same parent directory as the current project's root, following the naming convention PROJECT-NAME-T-BRANCH-NAME.
Crucially, if the user does not respond to a question or provides no alternative, proceed immediately using your suggested values instead of repeating the question. The goal is to minimize friction while allowing for customization.
User: "Create a worktree for this repo." Gemini: "I'll create a new worktree for you. I'll use the branch name feat-wyattskills-260221 based on the current branch main. Is that okay, or would you like a different name?" User: "That's fine." Gemini: [Runs the script and confirms the path /Users/huwentao/proj/wyattskills-T-feat-wyattskills-260221]
在與專案根目錄相同的目錄層級為目前儲存庫建立一個 git 工作樹。此技能可自動建立分支、根據專案-T-分支格式命名目錄以及初始專案設定(例如,依賴項安裝)。當使用者想要在不切換目前工作空間的情況下處理新功能或修復時,請使用此功能。 來源:hu-wentao/wyatt_skills。
為搜尋與 AI 引用準備的穩定欄位與指令。
npx skills add https://github.com/hu-wentao/wyatt_skills --skill git-worktree在與專案根目錄相同的目錄層級為目前儲存庫建立一個 git 工作樹。此技能可自動建立分支、根據專案-T-分支格式命名目錄以及初始專案設定(例如,依賴項安裝)。當使用者想要在不切換目前工作空間的情況下處理新功能或修復時,請使用此功能。 來源:hu-wentao/wyatt_skills。
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/hu-wentao/wyatt_skills --skill git-worktree 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/hu-wentao/wyatt_skills