Repository mirroring (from GitLab to GitHub)

Make GitLab the main place for all my repositories and github read-only and for archiving purposes.

Step by step

  1. Pick up name (for your repository/repositories): e.g.: procedural-programming-examples

  2. Create GitLab repository

  3. Create GitHub repository

  4. Generate a GitHub personal access token with the public_repo box checked (so you can pick up more options), and save that token.

  5. On GitLab repository → Go to the Settings → Repository → Mirroring repositories.

  6. Fill the URL and token. Mirror direction set to push. Authentication method set to password and fill the token

https://<your_github_username>@github.com/<again_your_github_username>/<your_github_project>.git
# e.g:
https://Mishco@github.com/Mishco/procedural-programming-examples.git

Done.

Michal Slovík
Michal Slovík
Java developer and Cloud DevOps

My job interests include devops, java development and docker / kubernetes technologies.