需要设置一个仅暴露一个分支的位桶回购的gitlab镜像 [英] Need to setup a gitlab mirror of a bitbucket repo with only ONE branch exposed

查看:68
本文介绍了需要设置一个仅暴露一个分支的位桶回购的gitlab镜像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只需要将我的Bitbucket存储库中的一个分支暴露给新的gitlab存储库.我的学生正在使用gitlab.com世界,而我的所有教学内容都存储在bitbucket存储库中.而且我想为特定的类提供特定的分支.

I need to only expose one branch from my bitbucket repo to a new gitlab repo. My students are using the gitlab.com world and I have all my teaching stuff in bitbucket repo's. And I would like to have specific branches for specific classes.

例如:

Bitbucket具有回购APCSA与分支机构:掌握每1每2每3开发

Bitbucket has the repo APCSA with the branches: master per1 per2 per3 dev

我想在不同的gitlab组下在gitlab上设置不同的仓库.

I want to have different repo's setup on gitlab under different gitlab groups.

因此,在一个小组中,我希望让他们仅看到:

So under one group I'd like to have them see only:

APCSA:per1分支(我很想弄清楚该如何镜像)

APCSA:per1 branch (and I'd love to figure out how to mirror this)

我已经尝试了很多组合镜像,但是它总是镜像整个仓库,所有分支.

I've tried lots of combo's of mirroring but it always mirrors the entire repo, all branches.

推荐答案

您可以创建GitLab CI/CD

You can create a GitLab CI/CD pipeline to clone, or pull, a single branch. Your pipeline can run on a different branch, in order to avoid conflicts and such.

使用网络用户界面

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆