Re: Git Master Master Replication

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Dmitrijs Ledkovs
Date: Saturday, May 8, 2010 - 10:44 am

On 8 May 2010 11:41, amitesh kumar <amitesh.a.kumar@gmail.com> wrote:

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.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Git Master Master Replication, amitesh kumar, (Sat May 8, 3:41 am)
Re: Git Master Master Replication, Dmitrijs Ledkovs, (Sat May 8, 10:44 am)