Git Two Remote
Last updated
Last updated
When using GitLab for private use, you also sometimes would like to upload the same code to GitHub as well. In this example, we clone a repo from GitLab and mirror the same thing to GitHub.
For example, we have a repo in GitLab
This is a private repo, so you will not have an access to this.
For example, we also have a repo in GitHub to mirror this one
Be aware, GitHub has base branch named
main
notmaster
.
This will push the code which was cloned from GitLab to GitHub.