Is it possible to set a dual master GIT repositories? I would like to set up two different servers which I could push and commit to and changes on any of them would be propagated to the other.

I've googled for it, but the most similar solution I've found is Gerrit2, but it does only one way replication (master -> master).

Does anybody know if this is even possible to do with git? If so, could you please tell me which tools to use?

Thanks in advance.

closed as off topic by Iain Oct 13 '12 at 19:49

Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here. If this question can be reworded to fit the rules in the help center, please edit the question.


You could begin creating a solution yourself using post-commit hooks, but that's more of a stackoverflow thing.

  • Thanks for your response. I'll take a look at that hooks thing. – scetoaux Apr 28 '10 at 13:45

Not the answer you're looking for? Browse other questions tagged or ask your own question.