git-sync-dev-submodules

Installation
SKILL.md

Git Sync Dev Submodules

Overview

  • Keep the flow local-first and fast: fetch once, then sync branches with merge --ff-only or rebase.
  • Default to refreshing func-core after branch sync.
  • After refresh, attach each selected submodule to the superproject's current branch name at the pinned commit when the superproject is on a branch.
  • Use --skip-submodules to skip submodule refresh entirely.
  • Use --dry-run to preview actions before changing git state.

Scripts

  • scripts/sync-dev-to-current-branch.sh
    • Run in any non-detached worktree.
    • If current branch is dev, fast-forward it to origin/dev.
    • Otherwise, rebase the current branch onto origin/dev.
  • scripts/sync-dev-worktrees.sh
    • Run from a dev worktree.
    • Fast-forward the current dev worktree to origin/dev.
    • Rebase every other clean, non-detached worktree onto local dev.
Related skills
Installs
7
GitHub Stars
2
First Seen
Mar 12, 2026