Documentation
README
GitHub to GitLab Mirror
GitHub main is the single source of truth. GitLab exists to build and deploy
the same commit internally.
Safety Rules
- Discover both remotes from their URLs; do not assume they are named
originandgitlab. - Never merge, cherry-pick, or push GitLab-only commits into GitHub.
- A fast-forward update to GitLab may proceed after verification.
- Rewriting a divergent GitLab branch requires explicit user authorization and
an exact
--force-with-leaseexpectation. - Do not change the local branch or working tree to mirror remote refs.
Status
-
Fetch both authoritative refs:
git remote -v git fetch <github-remote> main git fetch <gitlab-remote> main -
Record both SHAs and show commits unique to either side:
This is the opening of the README. Read the full README on GitHub.