git server replication

2019-05-02 15:33发布

We are using git for a multi site project and both the repo and the team have grown substantially. Therefore remote sites are suffering. I would like to add new git servers to the remote sites to decrease the load on our git server and to make the downloads faster. However I am not sure how to keep these synchronized. Is there any way to replicate git servers atomically? And if not any other suggestions?

2条回答
姐就是有狂的资本
2楼-- · 2019-05-02 16:14

You can't replicate atomically. I'm kind of hoping that that's not what you mean.

I wrote gitmirror for automatically triggering a remote pull-based replication on repository change. It requires a tiny bit of setup, but I've got tons of stuff coming through github into it (and a few that don't use github).

查看更多
看我几分像从前
3楼-- · 2019-05-02 16:19

You could have a main "write" repo, and multiple remote, read only, repos pull from that. In turn, remote users would pull from those. That would give you increased download speeds from remote sites. Uploads would still be the same, but it seems like download speed is your main concern.

查看更多
登录 后发表回答