当有人推送到主远程存储库(gitlab)时如何更新镜像远程存储库(自己的服务器)?

how to update mirrored remote repository(own server) when someone has pushed to the main remote repostiory(gitlab)?

我有主要的远程 Gitlab 存储库(A)和克隆镜像到另一个远程服务器(B),我想知道当有人推送到主要的 Gitlab 存储库(A)时如何更新(B)远程服务器).

你可以试试a pull mirroring, as described here:

Repository mirroring allows for mirroring of repositories to and from external sources. It can be used to mirror branches, tags, and commits between repositories.

was introduced 在 2018 年 1 月的 GitLab 10.3 中。