Skip to content

1. Pull mirror configuration guide

Adam Schubert edited this page Jun 17, 2018 · 2 revisions

Pull mirror configuration guide

Pull mirror

Pull mirror pulls changes from remote GIT repository (GitHub, etc.) to your GitlabCE installation To create your first pull mirror follow these steps

  1. Click on "Pull 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 mirror (eg. [email protected]:Salamek/gitlab-tools.git)
    2. Fill in "Project name" that is name of project that will be created in your GitLab CE installation
    3. Fill in "Search for group" select group in your GitLab CE installation where this mirrored project will be created. It can be separated group like "Mirrors" or any other group or subgroup.
  4. Click on "Save"
  5. Now you should see newly created mirror in "Pull mirror" section
  6. To get actual mirroring work, we must register push web hook to mirrored repository and allow your GitLab-Tools user to access that repository wia configured "Project mirror" URI:

How to register push web hook:

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.

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