Expose replicate mode in API and CLI · Entire

Expose replicate mode in API and CLI

3486c1b→main·

Soph·3mo ago·11 files·+244 added/-19 removed

Sessions

ce4b384e68ddView transcript

Changes

11

Commands

Library API

Features

Examples

Plan a source-authoritative replication without pushing anything:

go run ./cmd/git-sync plan \
  --mode replicate \
  --stats \
  https://github.com/source-org/source-repo.git \
  https://github.com/target-org/target-repo.git

Execute relay-only replication that overwrites differing managed refs and fails instead of materializing locally:

go run ./cmd/git-sync replicate \
  --stats \
  https://github.com/source-org/source-repo.git \
  https://github.com/target-org/target-repo.git

When To Use git-sync

Explicit Strategy Split

The current execution modes are:

The current transfer modes are:

The project now separates embedding concerns from first-party tooling concerns: