Gitlab/GitHub: Difference between revisions
(Created page with "== Gitlab project == [https://gitlab.com/qemu-project gitlab project] === Instructions to create a push mirror to GitHub == #Create the new repository on https://github.com/q...") |
|||
Line 2: | Line 2: | ||
[https://gitlab.com/qemu-project gitlab project] | [https://gitlab.com/qemu-project gitlab project] | ||
=== Instructions to create a push mirror to GitHub == | === Instructions to create a push mirror to GitHub === | ||
You will need admin access to both Gitlab and GitHub. | |||
#Create the new repository on https://github.com/qemu | #Create the new repository on https://github.com/qemu | ||
#Do not close GitHub, open the source repo https://gitlab.com/qemu-project/projectname | #Do not close GitHub, open the source repo https://gitlab.com/qemu-project/projectname | ||
Line 21: | Line 23: | ||
##Click "Add key" | ##Click "Add key" | ||
#On Gitlab click the retry icon | #On Gitlab click the retry icon | ||
== GitHub project == | == GitHub project == | ||
[https://github.com/qemu github organization] | [https://github.com/qemu github organization] |
Revision as of 15:33, 18 January 2021
Gitlab project
Instructions to create a push mirror to GitHub
You will need admin access to both Gitlab and GitHub.
- Create the new repository on https://github.com/qemu
- Do not close GitHub, open the source repo https://gitlab.com/qemu-project/projectname
- Click Setting->Repositopry
- Expand "Mirroring repositories"
- Set "Git repository URL" to ssh://git@github.com/qemu/projectname.git
- Set "Mirror direction" to Push
- Click "Detect host keys"
- Set "Authentication method" to "SSH public key"
- Click "Mirror repository"
- Click the suitcase icon ("Copy SSH public key")
- Go back to GitHub, do not close Gitlab
- Click Settings (on the top bar with Code, Issues, etc.)
- Click Deploy keys (on the left column)
- Click "Add deploy key"
- Type whatever you want for Title ("gitlab mirroring"), paste into key
- Click "Allow write access"
- Click "Add key"
- On Gitlab click the retry icon