gitlab-mirrors项目的目的是为了满足当前Gitlab所缺少的一个特性:远程仓库的镜像。而gitlab-mirrors可以创建远程仓库的只读拷贝,提供命令行接口用来管理镜像的仓库(如添加、删除和修改)。它使用的是python-gitlab3来跟GitLabAPI交互。
特性镜像不同类型的源仓库: Bazaar,Git,Mercurial,Subversion. 镜像到git.
GitLabmirroradding.
Whenaddingamirroriftheprojectdoesn'texistinGitLabitwillbeauto-created.
Setprojectcreationdefaults(e.g.issuesenabled,wikienabled,etc.)
Deletemirrorsbothlocalandremote.
non-GitLabmirroradding.
Manuallyspecifytheremoteanddon'tattemptAPIcommunicationtoGitLabnorattempttocreatetheremoteproject.
DeletemirrorslocallyonlywithoutcommunicatingtoGitLabtodeletetheremoteproject.
Thisfeatureisformirroringgitrepositoriesgenericallywhichcanbeusedbyanygithostingserverorservice. ThisfeaturewasoriginallyaddedwithmirroringGitLabwikisinmindbutallowsgitlab-mirrorstobemoreversatile.
Updateasinglemirror.
Updateallknownmirrors.
Listallknownmirrors.
评论