Re: need help with syncing two bare repos

2012-08-03 Thread Junio C Hamano
Eugene Sajine writes: > On Fri, Aug 3, 2012 at 4:00 PM, Junio C Hamano wrote: >> Eugene Sajine writes: >> >>> I think the best variant would be to do something like: >>> >>> $ git pull --rebase /refs/heads/*:/refs/heads/* >>> $ git push origin /refs/heads/*:/refs/heads/* >> >> You perhaps meant

Re: need help with syncing two bare repos

2012-08-03 Thread Eugene Sajine
On Fri, Aug 3, 2012 at 4:00 PM, Junio C Hamano wrote: > Eugene Sajine writes: > >> I think the best variant would be to do something like: >> >> $ git pull --rebase /refs/heads/*:/refs/heads/* >> $ git push origin /refs/heads/*:/refs/heads/* > > You perhaps meant "worst" not "best" here. From th

Re: need help with syncing two bare repos

2012-08-03 Thread Junio C Hamano
Eugene Sajine writes: > I think the best variant would be to do something like: > > $ git pull --rebase /refs/heads/*:/refs/heads/* > $ git push origin /refs/heads/*:/refs/heads/* You perhaps meant "worst" not "best" here. From the point of view of people who have pushed into the "origin" repos

Re: need help with syncing two bare repos

2012-08-03 Thread Sitaram Chamarty
On Fri, Aug 3, 2012 at 11:59 PM, Eugene Sajine wrote: > Hi, > > Could somebody please advise about how to address the following: > > I have a bare repo (bareA) on one server in network1 and i have a > mirror of it on another server (bareB) in network2 > BareB is updated periodically - no problem h