/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
| Option | Description |
|---|---|
--dry-run | Preview without making changes |
-m, --message | Commit message for uncommitted changes |
--pull-only | Only pull to protected (skip push) |
--check | Check if updates available |
--no-parent | Skip updating parent repo submodule |
--no-sync | Push only, skip protected sync |
-y, --yes | Skip 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
Related
- Skill:
skills/git-sync/SKILL.md - Script:
scripts/git-push-sync.py - ADR: ADR-113
Version: 1.0.0 | Created: 2026-01-25