使用 gerrit 来托管 git 存储库而不是 gitolite 或 gitosis 是个好主意吗?
本来我尝试使用gitosis来管理公司的git仓库,后来发现gitolite是gitosis的一种增强。
我还听说 gerrit 可以用于相同的目的,但从描述来看,gerrit 主要用于代码审查。
设置 git 服务器的最佳方法是
- 那么,使用 gitolite (用于 git repo)和 gerrit (用于代码审查)一起
- 使用 gerrit ONLY 来管理 git 存储库和 codereview
可以你给一些建议吗?
顺便说一句:http://gitorious.org/ 被考虑在未来
Originally I try to use gitosis to manage the git repositories in the company, and later notice gitolite is kind of enhancement of gitosis.
And also I heard gerrit could be used for the same purpose, but from the description, gerrit is mainly used for code review.
So which is the best way for setting up git server
- using gitolite (for git repo) AND gerrit (for code review) together
- using gerrit ONLY to manage git repository and codereview
Can you give some suggestion ?
BTW: http://gitorious.org/ is considered in the future
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果需要代码审查,可以使用 gerrit,它有自己的集成 git 的 ssh 服务器。
Gerrit 使用用户组并允许您指定所需级别的权限,它还有一些功能可以轻松接受外部开发人员的贡献,您可以强制开发人员接受某些 TOS。
You can use gerrit if you need code review, it has its own ssh server that integrate git.
Gerrit use user groups and allow you to specify permissions at desire level, it also have some features to accept contribution from external developers easily, you can force developers to accept some TOS.
如果您打算使用 gerrit,您也可以将其用于托管和代码审查——这样工作流程会更容易,因为 gerrit 会管理将您审查的代码合并到其存储库中,这就是您想要的要发布 - 如果您在其他地方托管,您将必须设置一种自动从 gerrit 提取的方法,或者您将有一种方法让您的开发人员通过将更改直接推送到托管存储库并完全忽略 gerrit。
最新版本的 gerrit 可以集成 gitweb,为您提供漂亮的 Web 界面来浏览,但受到您设置的 ACL 的保护。
If you're going to use gerrit at all, you might as well use it for hosting as well as code review -- the workflow is easier that way, as gerrit will manage merging your reviewed code into its repository, and that's what you want to be publishing -- if you host elsewhere, you're going to have to either set up a method for automatically pulling from gerrit or you're going to have a way for your developers to bypass the code review by pushing their changes straight to the hosted repositories and ignoring gerrit altogether.
Recent versions of gerrit can integrate gitweb, giving you the nice web interface to browse with, but protected by the ACLs you've set up.
我仅使用 gitolite 作为它提供的细粒度 ACL。
对于代码审查部分,我使用 FishEye (尽管免费,但不是免费的)某些项目存在许可证)和 Crucible(均来自 Atlassian)。
这使我能够将两个功能(ACL 与代码审查)分离到两个单独的服务器上。
I use only gitolite for the fine-grained ACL it provides.
For the code-review part, I use FishEye (not free even though free licenses exist for certain projects) and Crucible (both from Atlassian).
That allows me to separate the two features (ACL vs. Code review) on two separate servers.