submodule-linked-worktrees - Safely sync submodule linked worktrees
Sets up or synchronizes Git submodule linked worktrees using shared object stores while preflighting selected paths and optional missing-commit fetches.
Tags
Updated: 2026-11-25Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Inspect repository metadata
- Choose submodule setup
- Configure reference alternates
- Create linked worktrees
- Sync checkout SHAs
- Preflight selected paths
- Fetch missing commits
- Avoid hard-linked files
Inputs
- Target repository path
- Canonical source checkout path
- Top-level submodule paths
- Fetch authorization
- Git submodule metadata
Outputs
- Linked submodule worktrees
- Synchronized checkout SHAs
- Dry-run synchronization plan
- Repository state changes
- Failure diagnostics
Requirements
- Git 2.45 or newer
- Python 3
- POSIX environment
- Repository read and write access
- Network access for authorized fetches
