What problem does it solve?
Teams that treat GitHub as the source of truth but build and deploy from an internal GitLab mirror need a safe way to detect drift, fast-forward the mirror, and handle divergence without ever leaking GitLab-only commits back into GitHub.
Core Features & Use Cases
- Consistency Auditing: Fetches both remotes, compares SHAs, and classifies the relationship as equal, fast-forwardable, GitLab-ahead, or diverged.
- Safe Synchronization: Pushes verified fast-forwards to GitLab and requires explicit authorization plus an exact
--force-with-lease expectation before rewriting a divergent mirror branch.
- Post-Sync Verification: Re-fetches both remotes and demands exact SHA equality before reporting success, including whether the GitLab build/deploy pipeline triggered.
- Use Case: Before a release, check whether the internal GitLab mirror matches GitHub main, fast-forward it if behind, and confirm the deployment pipeline ran on the mirrored commit.
Quick Start
Check whether my GitHub main and GitLab mirror are in sync, and update the GitLab mirror if it is safely behind.