Zum Inhalt springen
Kitbay
Skill

create-worktree

Apache-2.0Aktualisiert am 11. Nov. 202650.877GitHub-Sterne

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.

Was der Skill vermittelt

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.

Funktionen

  • 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