scorpiox-mirror-git Core

Git fleet mirror tool — synchronize and mirror multiple Git repositories across machines. Depends on sxutil for configuration.

Supported Platforms

Linux x64 Linux ARM64 macOS ARM64 Windows x64

Flags & Options

Flag Short Description Takes Value
--apply Execute changes (default: dry-run) No
--credential-helper Use git credential store instead of PAT in URLs No
--fix Apply remote URL fixes No
--force Sync even with dirty working tree No
--help -h Show help message No
--machine Filter to single machine Yes
--prune Remove extra local branches during sync No

Usage Examples

Dry-run preview (default)

# Preview what would be synced — no changes made
scorpiox-mirror-git

Apply mirror sync

# Actually execute the mirror — clone/pull all repos
scorpiox-mirror-git --apply

Sync a specific machine only

# Mirror repos configured for a single machine
scorpiox-mirror-git --machine dev-server-01 --apply

Force sync with dirty tree

# Sync even if repos have uncommitted changes
scorpiox-mirror-git --force --apply

Prune stale branches

# Sync and remove local branches not on remote
scorpiox-mirror-git --prune --apply

Fix remote URLs

# Repair misconfigured remote URLs across fleet
scorpiox-mirror-git --fix --apply

Use git credential helper

# Use git credential store instead of embedding PATs in URLs
scorpiox-mirror-git --credential-helper --apply

Full fleet sync with cleanup

# Complete mirror: force sync, prune old branches, fix URLs
scorpiox-mirror-git --force --prune --fix --apply

Source & Build Info

Source File
scorpiox/scorpiox-mirror-git.c
Lines of Code
1,620
Dependencies
libsxutil

Related Tools