Skip to content

2. Push mirror configuration guide

Adam Schubert edited this page Jun 7, 2018 · 1 revision

Push mirror configuration guide

Push mirror pushes changes from your GitlabCE installation to remote GIT repository (GitHub, etc.) To create your first push mirror follow these steps

  1. Click on "Push mirror" in main menu
  2. Click on "Add +"
  3. Fill in form required fields:
    1. Fill in "Project mirror" that is GIT repo URI you want to push to (eg. [email protected]:Salamek/gitlab-tools.git), it must exists and be empty!
    2. Fill in "Search for project" select project in your GitLab CE installation you want to mirror.
  4. Click on "Save"
  5. Now you should see newly created mirror in "Push mirror" section
  6. To get actual mirroring work you must allow your GitLab-Tools user to access that repository wia configured "Project mirror" URI:

How to allow access to mirrored repository:

For SSH access you will need GitLab-Tools user public key, you can find it on "Home" page. If you use SSH, make sure your deploy key on target repository has writtable permission.

Git provider SSH URI HTTPS URI
GitHub https://developer.github.com/v3/guides/managing-deploy-keys/ https://docs.gitlab.com/ee/workflow/repository_mirroring.html#setting-up-a-push-mirror-from-gitlab-to-github
GitLab https://docs.gitlab.com/ee/ssh/#deploy-keys https://username:[email protected]:group1/project1.git as format of your URI should be fine