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
-
Pick up name (for your repository/repositories): e.g.:
procedural-programming-examples
-
Create GitLab repository
-
Create GitHub repository
-
Generate a GitHub personal access token with the
public_repo
box checked (so you can pick up more options), and save that token. -
On GitLab repository → Go to the Settings → Repository → Mirroring repositories.
-
Fill the URL and token. Mirror direction set to
push
. Authentication method set topassword
and fill thetoken
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.