Gitlab/GitHub

From QEMU
Revision as of 15:32, 18 January 2021 by Paolo Bonzini (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Gitlab project

gitlab project

= Instructions to create a push mirror to GitHub

  1. Create the new repository on https://github.com/qemu
  2. Do not close GitHub, open the source repo https://gitlab.com/qemu-project/projectname
  3. Click Setting->Repositopry
  4. Expand "Mirroring repositories"
  5. Set "Git repository URL" to ssh://git@github.com/qemu/projectname.git
  6. Set "Mirror direction" to Push
  7. Click "Detect host keys"
  8. Set "Authentication method" to "SSH public key"
  9. Click "Mirror repository"
  10. Click the suitcase icon ("Copy SSH public key")
  11. Go back to GitHub, do not close Gitlab
    1. Click Settings (on the top bar with Code, Issues, etc.)
    2. Click Deploy keys (on the left column)
    3. Click "Add deploy key"
    4. Type whatever you want for Title ("gitlab mirroring"), paste into key
    5. Click "Allow write access"
    6. Click "Add key"
  12. On Gitlab click the retry icon


GitHub project

github organization