Skip to main content

/git-sync

Synchronizes coditect-core between development (submodule) and protected installation via git push/pull.

Usage

/git-sync                    # Push and sync (contributors)
/git-sync --dry-run # Preview only
/git-sync -m "message" # Commit first, then push+sync
/git-sync --pull-only # Pull only (customers)
/git-sync --check # Check for updates
/git-sync --no-parent # Skip parent repo update

Options

OptionDescription
--dry-runPreview without making changes
-m, --messageCommit message for uncommitted changes
--pull-onlyOnly pull to protected (skip push)
--checkCheck if updates available
--no-parentSkip updating parent repo submodule
--no-syncPush only, skip protected sync
-y, --yesSkip confirmations

Workflow

Contributors (push + pull)

Submodule ──git push──▶ GitHub ──git pull──▶ Protected

Customers (pull only)

GitHub ──git pull──▶ Protected (~/.coditect)

Examples

# Standard contributor workflow
/git-sync -m "feat: Add new agent"

# Check for updates (customer)
/git-sync --check

# Force sync protected
/git-sync --pull-only

Auto-Sync

After setup, every git push in coditect-core automatically syncs protected.

Setup:

# Install git alias
git config --global alias.pushsync '!git push && ~/.coditect/hooks/git/post-push'

# Use: git pushsync
  • Skill: skills/git-sync/SKILL.md
  • Script: scripts/git-push-sync.py
  • ADR: ADR-113

Version: 1.0.0 | Created: 2026-01-25