cyberneticlibrary

Sync repositories with pre-commit guards

git-syncskillsetup L25
tvproductions/gzkit
What it does

Execute guarded repository sync with enforced lint/test gates and dry-run preview

Best for

Safe repository synchronization that enforces code quality gates and prevents accidental force pushes

Inputs
  • · current branch state
  • · remote tracking info
Outputs
  • · sync preview (dry-run)
  • · post-sync repo state (on apply)
Requires
  • · git (fetch, push, rebase)
  • · pre-commit hooks (ruff, ty, unittest, xenon)
Preconditions
  • · repo initialized with `gz init`
  • · current directory is git worktree
Failure modes
  • · divergence blocks sync until resolved
  • · lint/test failure blocks until fixed
Trust signals
  • · no force push allowed
  • · pre-commit hooks mandatory
  • · fetch-before-push prevents divergence