git Gerrit 可以在 Gitlab 前面工作还是打算取代它

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/25880670/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 10:23:31  来源:igfitidea点击:

Can Gerrit work in front of Gitlab or is it meant to replace it

gitgitlabgerrit

提问by Matt Thompson

I don't think I'm really understanding how Gerrit can fit into my group's existing workflow. Is Gerrit intended to be the central "hub" of code? I have been imagining it as similar to Atlassian's Crucible, which fits in with Atlassian's Stash or Bitbucker.

我不认为我真的了解 Gerrit 如何适应我团队现有的工作流程。Gerrit 是否打算成为代码的中心“枢纽”?我一直把它想象成类似于 Atlassian 的 Crucible,它适合 Atlassian 的 Stash 或 Bitbucker。

My group currently uses a very active Gitlab installation but the built-in code review facility is lacking, and I absolutely must inspect code from contractors going into the repo.

我的团队目前使用非常活跃的 Gitlab 安装,但缺乏内置的代码工具,我绝对必须检查来自进入 repo 的承包商的代码。

I need a behind-the-firewall solution, and cost is a big consideration. I have heard positive things about Gerrit, but not really an explanation of how it can fit into an existing process. I also like that it seems to have pretty good eclipse integration.

我需要一个防火墙后的解决方案,成本是一个重要的考虑因素。我听说过关于 Gerrit 的积极方面,但并没有真正解释它如何适应现有流程。我也喜欢它似乎有很好的 eclipse 集成。

Can someone help me out?

有人可以帮我吗?

采纳答案by Magnus B?ck

Gerrit expects to "own" the repositories you use it with, i.e. it expects the git directories to be present in a mounted file system. If you want it to interact with GitLab (or GitHub) you can set up one way replication from Gerrit to GitLab so that changes made in Gerrit will be pushed to GitLab within a few seconds. For GitHub there's a Gerrit GitHub pluginto help with this.

Gerrit 期望“拥有”您使用它的存储库,即它期望 git 目录存在于已挂载的文件系统中。如果您希望它与 GitLab(或 GitHub)交互,您可以设置从 Gerrit 到 GitLab 的一种复制方式,这样在 Gerrit 中所做的更改将在几秒钟内推送到 GitLab。对于 GitHub,有一个Gerrit GitHub 插件可以帮助解决这个问题。

You can continue to use the other features of GitLab but if you don't lock down the repositories (or at least block pushes into branches that Gerrit manages) you'll end up in trouble the next time Gerrit attempts to replicate to the GitLab repository.

您可以继续使用 GitLab 的其他功能,但是如果您不锁定存储库(或至少阻止推送到 Gerrit 管理的分支中),您将在下次 Gerrit 尝试复制到 GitLab 存储库时遇到麻烦.

So... Gerrit does replace GitLab's repository management and code review facilities but doesn't contain an issue tracker, wiki, or similar.

所以... Gerrit 确实取代了 GitLab 的存储库管理和代码工具,但不包含问题跟踪器、wiki 或类似工具。