git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dmitrijs Ledkovs <dmitrij.ledkov@ubuntu.com>
To: amitesh kumar <amitesh.a.kumar@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Git Master Master Replication
Date: Sat, 8 May 2010 18:44:42 +0100	[thread overview]
Message-ID: <n2y86ecb3c71005081044pae211c37lc01ddc5f9f2ff146@mail.gmail.com> (raw)
In-Reply-To: <o2tc2f2fad1005080341z42b389e0i791c6c7a02dee5e5@mail.gmail.com>

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.

      reply	other threads:[~2010-05-08 17:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-08 10:41 Git Master Master Replication amitesh kumar
2010-05-08 17:44 ` Dmitrijs Ledkovs [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=n2y86ecb3c71005081044pae211c37lc01ddc5f9f2ff146@mail.gmail.com \
    --to=dmitrij.ledkov@ubuntu.com \
    --cc=amitesh.a.kumar@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).