2 way synchronization of in-house gitosis repositories server with Github repositories

Posted by Robert J Berger on Stack Overflow See other posts from Stack Overflow or by Robert J Berger
Published on 2010-05-21T02:32:15Z Indexed on 2010/05/21 2:40 UTC
Read the original article Hit count: 335

Filed under:
|
|
|

We use gitosis as our local in-house shared repository and also have a private Github account that mirrors our local repository. If one does a git push to the in-house repository the post-update hook updates the Github repository.

How can I make this two way without causing "loops"? I.e. if someone pushes to the Github repository, I would like it to also update the in-house gitosis repository.

A pointer to an example of how to do it would be greatly appreciated.

Or if there are recommendations of alternatives to gitosis that would make this kind of thing easy, I would consider migrating to that.

© Stack Overflow or respective owner

Related posts about github

Related posts about gitosis