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.

1 Answer 1


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, 2010 at 13:45

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