本文へスキップ
Kitbay
スキル

create-worktree

Apache-2.02026年11月11日 更新50,877GitHubスター

A contributor skill in the ClickHouse repository for creating a git worktree for ClickHouse development from a branch name, checking out an existing local or remote branch or making a new one.

スキルの内容

A contributor skill in the ClickHouse repository for creating a git worktree for ClickHouse development from a branch name, checking out an existing local or remote branch or making a new one. The agent asks where to put it and stops if the folder exists. For work that will be built or tested, it hardlinks the main clone's submodule data into the new worktree, registers the submodules, rewrites their paths and checks each out in parallel at the recorded commit, heaviest first, without any network fetch; it fails if a commit is missing locally or a submodule uses a custom update command. Text-only work such as docs or typo fixes skips submodules. Build folders are not shared.

できること

  • Create a worktree for a new or existing branch
  • Hardlink submodule data from the main clone
  • Check out submodules in parallel without network access
  • Remove a worktree cleanly