🪞 Repository mirroring (from GitLab to GitHub)
May 10, 2021
·
1 min read
Make GitLab the main place for all my repositories and GitHub read-only and for archiving purposes.
Step by step
- Pick up a name (for your repository/repositories): e.g.:
procedural-programming-examples
- Create a GitLab repository.
- Create a 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 the GitLab repository, go to Settings -> Repository -> Mirroring repositories.
- Fill in the URL and token. Set the mirror direction to
push
. Set the authentication method topassword
and fill in 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