使用现有 Gitolite 配置设置 GitLab 的简单方法 [英] Easy way to setup GitLab with existing Gitolite configuration

查看:11
本文介绍了使用现有 Gitolite 配置设置 GitLab 的简单方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个现有的 Gitolite 配置,其中包含许多用户和存储库.它是按照 Gitolite 安装指南建议的默认方式设置的.现在我想添加 GitLab 以便能够进行代码审查和错误跟踪.

I have an existing Gitolite configuration with many users and repositories. It is setup in the default way as the Gitolite installation guide suggests. Now I would like to add GitLab to be able to do code reviews and bug tracking.

实现这一点最方便的方法是什么?

What's the most convenient way to achieve this?

推荐答案

原始答案(2013 年 1 月)

Original answer (January 2013)

您可以按照标准安装,并在您的 中注明gitlab.yml 配置文件 你的 gitolite 仓库的位置,以及 gitolite 管理员用户.

You can follow the standard installation, and indicate in your gitlab.yml config file the location of your gitolite repo, as well as the gitolite admin user.

但是,GitLab 要求用户在 GitLab 中注册自己并复制他们的公共 ssh 密钥.
这意味着您可能需要调整 gitolite 存储现有 gitolite 用户的方式,因为您使用的名称可能与 GitLab 使用的名称不同(它使用基于 login_email_auuid 的名称).

However, GitLab requires from the user to register themselves in GitLab and copy their public ssh key.
That means you might need to adapt the way gitolite has stored existing gitolite users, since the name you have used is likely to be different than the name used by GitLab (it uses a name based on the login_email_auuid).

更新(2018 年 8 月,5 年后):

Update (August 2018, 5 years later):

正如在下方评论Thomas,在这个答案几个月后,GitLab 发布了 GitLab 5.0,没有 gitolite.

As commented below by Thomas, a few months after this answer, GitLab released GitLab 5.0, without gitolite.

现在我想添加 GitLab 以便能够进行代码审查和错误跟踪.
实现此目的最方便的方法是什么?

Now I would like to add GitLab to be able to do code reviews and bug tracking.
What's the most convenient way to achieve this?

如今(2018 年,GitLab 11.2.x),通过 合并请求(几年前一直如此).
见:

These days (2018, GitLab 11.2.x), code review is supported through merge request (it has been so since a few years already).
See:

这篇关于使用现有 Gitolite 配置设置 GitLab 的简单方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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