如何在远程位置设置 Gerrit 镜像

发布于 2024-11-26 15:16:24 字数 158 浏览 7 评论 0原文

我们在欧洲使用 git 和 Gerrit 进行代码审查,效果很好;)问题是我们在亚洲的同事有互联网连接,这使得克隆、推送和拉取需要很长时间。有没有办法设置 Gerrit 镜像,以便每个提交只需在欧洲和亚洲之间传输一次?我知道 Gerrit 支持复制,但我不确定这就是答案,因为我希望能够在两侧进行推拉。

We use git with Gerrit for code reviewing in Europe and it works fine ;) The problem is that we have colleagues in Asia with an internet connection that makes cloning, pushing and pulling take ages. Is there a way to setup a Gerrit mirror so that every commit has to be transfered between Europe and Asia only once? I know Gerrit supports replication but I'm not sure that's the answer since I'd like to be able to push and pull on both sides.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

北城半夏 2024-12-03 15:16:25

我不使用 gerrit,但这里的问题似乎并不那么复杂。您只需要创建一个“本地”存储库。例如,现在在两侧设置一个后接收钩子,相互推动。现在,每当有人将某些内容推送到您的澳大利亚存储库时,它就会被推送到您的镜像,您和您的开发人员可以从该存储库中推送和拉取(然后将再次推送到澳大利亚)。

I don't use gerrit, but here problem doesn't seem to be that complex. You just need to create a "local" repository. Now for example set up a post-receive-hook on both sides, that push to each other. Now every time someone pushs something to your australian repository, it gets pushed to your mirror and you and your developers can push and pull from this one (which will then pushed to australia again).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文