# demo-gitlab-mirror
Demo of a push mirror from GitLab to GitHub. Commit on GitLab only; every push
is mirrored to GitHub, and a commit made on GitHub makes the mirror diverge.
| Role | Repository | Pages |
| --- | --- | --- |
| Source | [gitlab.com/tiennm99/demo-gitlab-mirror](https://gitlab.com/tiennm99/demo-gitlab-mirror) | |
| Mirror target | [github.com/tiennm99/demo-gitlab-mirror](https://github.com/tiennm99/demo-gitlab-mirror) | |
Both Pages sites serve the same setup guide (Vietnamese) from
[`docs/index.html`](docs/index.html). It is based on the post
[Mirror repository từ GitLab sang GitHub](https://miti99.com/post/2025/03/26/).
## Pages
- **GitLab Pages:** `.gitlab-ci.yml` copies `docs/` to `public/` on the default branch.
- **GitHub Pages:** serves `docs/` from `main`, so no workflow file is needed
and the mirror token only needs `Contents` permission.