{"thread":{"id":"23744","subject":"Git Master Master Replication","startedAt":"2010-05-08T10:41:55Z","lastAt":"2010-05-08T17:44:42Z","messageCount":2,"participants":["amitesh kumar","Dmitrijs Ledkovs"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"141244","messageId":"o2tc2f2fad1005080341z42b389e0i791c6c7a02dee5e5@mail.gmail.com","threadId":"23744","inReplyTo":null,"subject":"Git Master Master Replication","fromName":"amitesh kumar","fromEmail":"amitesh.a.kumar@gmail.com","sentAt":"2010-05-08T10:41:55Z","receivedAt":"2010-05-08T10:41:55Z","isPatch":false,"sender":{"key":"amitesh.a.kumar@gmail.com","avatar":null},"body":"Hi im working on a project the will be deployed in many countries,\nIs it possible with Git to host n masters?\nCan any change on a particular master be propagated to others?\n\nI have had a look at Gerrit2 but it only looks one way.\n\nCheers\nAmitesh\n"},{"id":"141256","messageId":"n2y86ecb3c71005081044pae211c37lc01ddc5f9f2ff146@mail.gmail.com","threadId":"23744","inReplyTo":"o2tc2f2fad1005080341z42b389e0i791c6c7a02dee5e5@mail.gmail.com","subject":"Re: Git Master Master Replication","fromName":"Dmitrijs Ledkovs","fromEmail":"dmitrij.ledkov@ubuntu.com","sentAt":"2010-05-08T17:44:42Z","receivedAt":"2010-05-08T17:44:42Z","isPatch":false,"sender":{"key":"dmitrij.ledkov@ubuntu.com","avatar":"https://gravatar.com/avatar/79b618c6eb391ddb486c2ee0d3b429014e0e9ba579fd55f2e035f482fc8c24f4?d=mp&s=160"},"body":"On 8 May 2010 11:41, amitesh kumar <amitesh.a.kumar@gmail.com> wrote:\n> Hi im working on a project the will be deployed in many countries,\n> Is it possible with Git to host n masters?\n> Can any change on a particular master be propagated to others?\n>\n> I have had a look at Gerrit2 but it only looks one way.\n>\n> Cheers\n> Amitesh\n\nIn one git repository you can have only one branch with exactly the\nsame ref e.g. refs/heads/master.\n\nBy editing .git/config you can setup unlimited amount of locations of\nwhere to pull from and where to push to (and you can pull from many\nlocations to a same branch and push one branch to many locations)\n\n[remote \"server-uk\"]\n      push = +refs/heads/master:refs/heads/master\n      push = +refs/heads/uk/*:refs/heads/*\n      pushurl = bla.co.uk\n\nSimilarly you can specify pulls using * or specifing each one.\n\n.git/config is extremly flexible I'm sure you can make it work with\nany amount of remotes =)\n\nhope this helps.\n"}]}