git Gerrit 与 Github
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2451644/
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
Gerrit with Github
提问by Macarse
I am using githuband I am willing to start using Gerritwith it.
Since Gerrit uses JGit, I am scared of the following text from this link:
由于 Gerrit 使用 JGit,我害怕此链接中的以下文本:
EGit/JGit is a reimplementation of git in java, due to this GitHub does not officially support it. Issues have happened and repositories have been corrupted by them. While it is usually a simple matter to repair these repos due to git's distributed nature, be aware that EGit may not work as well as the official git binaries.
EGit/JGit 是 git 在 java 中的重新实现,由于这个 GitHub 没有正式支持它。问题已经发生并且存储库已被它们损坏。由于 git 的分布式特性,修复这些存储库通常是一件简单的事情,但请注意,EGit 可能无法像官方 git 二进制文件那样正常工作。
Did someone already use it?
有人已经使用了吗?
回答by Scott Chacon
Gerrit is it's own server and the issues we've seen were with the client and have recently been fixed in the brand new version of JGit. It also didn't corrupt the repository, it just pushed packfiles that were missing objects. The Gerrit server is solid and has been used by the Android project for over a year.
Gerrit 是它自己的服务器,我们看到的问题与客户端有关,最近在全新版本的 JGit 中得到了修复。它也没有损坏存储库,它只是推送缺少对象的包文件。Gerrit 服务器是可靠的,并且已经被 Android 项目使用了一年多。
However, since it is its own server and enforces a very specific workflow, it is generally not used in conjunction with public GitHub much, since code contributions on GitHub tend to be pull requests, where contributions on Gerrit are peer-verified patch series through the Gerrit system. Again, you can set them both up for the same project, but most people do not.
但是,由于它是自己的服务器并执行非常具体的工作流程,因此通常不会与公共 GitHub 结合使用太多,因为 GitHub 上的代码贡献往往是拉取请求,其中 Gerrit 上的贡献是通过同行验证的补丁系列格里特系统。同样,您可以为同一个项目设置它们,但大多数人不这样做。
回答by AndreasB
Take a look at http://gerrithub.io- the site enables Gerrit workflow for public GitHub repositories.
查看http://gerrithub.io- 该站点为公共 GitHub 存储库启用 Gerrit 工作流程。