开发者

How to setup a Gerrit mirror in a remote location

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.


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).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜