Pular para o conteúdo
Kitbay
Skill

create-worktree

Apache-2.0Atualizado em 11 de nov. de 202650.877Estrelas no GitHub

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.

O que a skill ensina

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.

O que faz

  • 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