Thread (4 messages) flat view 4 messages, 3 authors, 2016-06-15

Re: Git: How to keep multiple bare repos in sync?

From: Junio C Hamano <hidden>
Date: 2016-06-15 23:04:44

chenxitwo [off-list ref] writes:
There are three git server(bare repos), but i don't know to solve the
problem that how to keep these git servers in sync.
rsync?

The problem is under-specified.  Is there one of them that is
authoritative and that the other ones should match its progress?
If so, perhaps push from the authoritative one to the other two
with "push --mirror" (or have the other ones "fetch --mirror")?

If you are allowing people to push into any of them randomly,
then there is no general solution.  If I push an update to 'master'
of instance A while you update the same 'master' branch of instance
B, somebody has to reconcile the divergence between the two by
creating a merge, and that can possibly conflict, needing human
intervention to resolve.
 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help