Создание изолированного git worktree для параллельной разработки
★ 7.4 · devops
Управление рабочим деревом репозитория is a Claude Code skill that creates an isolated git worktree at worktree/<branch-name>, pulls the latest master, and initializes submodules in a single automated flow. Reach for it when you need to work on multiple branches simultaneously without losing your current context, when you want to prototype a feature without touching the main working copy, or when each task needs its own directory with a clean, independent environment. Built as a Bash script, the skill navigates to the repo root via git rev-parse, checks out master and pulls from origin, runs git worktree add to create the new tree, then recursively initializes submodules with git submodule update --init --recursive, and prints the confirmed path and branch name. The new worktree inherits .claude/skills/ workflows automatically. This skill creates a fresh working tree branched from master — it does not switch the HEAD of an existing checkout. When the work is done, remove the tree with git worktree remove; inspect all active trees with git worktree list. Works with any standard git repository that supports worktrees; not suitable for bare-clone setups or CI environments where nested submodule initialization is restricted.
- #git-worktree
- #git-automation
- #development-setup
- #branch-management