Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

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.

up vote 3 down vote accepted

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

share|improve this answer
Thanks for your response. I'll take a look at that hooks thing. – Francisco Apr 28 '10 at 13:45

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