Repository Mirroring
See Gitlab Mirroring for more information
Why you should use a mirror
"Mirror a repository when:
- The canonical version of your project has migrated to GitLab. To keep providing a copy of your project at its previous home, configure your GitLab repository as a push mirror. Changes you make to your GitLab repository are copied to the old location.
- Your GitLab instance is private, but you want to open-source some projects.
- You migrated to GitLab, but the canonical version of your project is somewhere else. Configure your GitLab repository as a pull mirror of the other project. Your GitLab repository pulls copies of the commits, tags, and branches of project. They become available to use on GitLab"
--https://docs.gitlab.com/ee/user/project/repository/mirror/
Best Practices
- Mirrored repositories will only mirror protected branches
- Mirrored branches will not record divergence (updates to protected branches on the mirror will be overwritten)
- External collaborators should give us an access token or similar to the repository so that we can set up an internal mirror on our Gitlab repository
- Potentially bidirectional if they are expecting us to push code changesĀ
Limitations
Currently only have push capabilities. This means downstream mirrors will not be able to update main repository