4

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.

scetoaux
  • 1,269
  • 2
  • 12
  • 25

1 Answers1

3

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

Fahad Sadah
  • 1,496
  • 11
  • 21