git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Git Master Master Replication
@ 2010-05-08 10:41 amitesh kumar
  2010-05-08 17:44 ` Dmitrijs Ledkovs
  0 siblings, 1 reply; 2+ messages in thread
From: amitesh kumar @ 2010-05-08 10:41 UTC (permalink / raw)
  To: git

Hi im working on a project the will be deployed in many countries,
Is it possible with Git to host n masters?
Can any change on a particular master be propagated to others?

I have had a look at Gerrit2 but it only looks one way.

Cheers
Amitesh

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Git Master Master Replication
  2010-05-08 10:41 Git Master Master Replication amitesh kumar
@ 2010-05-08 17:44 ` Dmitrijs Ledkovs
  0 siblings, 0 replies; 2+ messages in thread
From: Dmitrijs Ledkovs @ 2010-05-08 17:44 UTC (permalink / raw)
  To: amitesh kumar; +Cc: git

On 8 May 2010 11:41, amitesh kumar <amitesh.a.kumar@gmail.com> wrote:
> Hi im working on a project the will be deployed in many countries,
> Is it possible with Git to host n masters?
> Can any change on a particular master be propagated to others?
>
> I have had a look at Gerrit2 but it only looks one way.
>
> Cheers
> Amitesh

In one git repository you can have only one branch with exactly the
same ref e.g. refs/heads/master.

By editing .git/config you can setup unlimited amount of locations of
where to pull from and where to push to (and you can pull from many
locations to a same branch and push one branch to many locations)

[remote "server-uk"]
      push = +refs/heads/master:refs/heads/master
      push = +refs/heads/uk/*:refs/heads/*
      pushurl = bla.co.uk

Similarly you can specify pulls using * or specifing each one.

.git/config is extremly flexible I'm sure you can make it work with
any amount of remotes =)

hope this helps.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-05-08 17:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-08 10:41 Git Master Master Replication amitesh kumar
2010-05-08 17:44 ` Dmitrijs Ledkovs

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).