Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Audits or synchronizes the authoritative GitHub main branch to the internal GitLab mirror without importing GitLab-only history back into GitHub. Use when checking GitHub/GitLab consistency, updating the internal mirror, or resolving a divergence between the two remotes.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-07 | ✗→✓ | ▲ Improved | -31% | 0% |
| case-08 | ✗→✓ | ▲ Improved | -11% | 0% |
| case-11 | ✗→✓ | ▲ Improved | -13% | 0% |
| case-12 | ✗→✓ | ▲ Improved | -24% | 0% |
| case-15 | ✗→✓ | ▲ Improved | -16% | 0% |
GitHub main is the single source of truth. GitLab exists to build and deploy the same commit internally.
originand gitlab.
an exact --force-with-lease expectation.
bash git remote -v git fetch <github-remote> main git fetch <gitlab-remote> main
bash git rev-parse <github-remote>/main git rev-parse <gitlab-remote>/main git log --oneline <gitlab-remote>/main..<github-remote>/main git log --oneline <github-remote>/main..<gitlab-remote>/main
For a verified fast-forward:
bashgit push <gitlab-remote> <github-remote>/main:refs/heads/main
For a GitLab-ahead or divergent branch, stop and display the GitLab-only commits. An explicit request to restore GitLab as the GitHub mirror authorizes discarding those mirror-only commits. Use the previously fetched GitLab SHA as the lease:
bashgit push \ --force-with-lease=refs/heads/main:<expected-gitlab-sha> \ <gitlab-remote> \ <github-remote>/main:refs/heads/main
If the lease fails, fetch and reassess instead of weakening the protection.
Fetch both remotes again and require exact SHA equality from fresh refs:
bashgit fetch <github-remote> main git fetch <gitlab-remote> main test "$(git rev-parse <github-remote>/main)" = \ "$(git rev-parse <gitlab-remote>/main)"
If GitHub advanced during the synchronization, return to the Status phase and mirror the new SHA. Do not claim success until one fresh fetch of both remotes observes equality.
Report both final SHAs and whether the GitLab build/deploy pipeline was triggered. Do not describe the mirror as synchronized until the SHAs match. The scheduled mirror job in .gitlab-ci.yml is the automation reference.
Other measured skills in the registry, with their headline benchmark lift.