git服务器复制 [英] git server replication

查看:88
本文介绍了git服务器复制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在将git用于一个多站点项目,并且回购和团队都大大增加了.因此,远程站点正在遭受痛苦.我想将新的git服务器添加到远程站点,以减少git服务器的负载并加快下载速度.但是我不确定如何保持这些同步.有什么方法可以自动复制git服务器吗?还有其他建议吗?

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?

推荐答案

您可以有一个主要的写"存储库,以及多个远程的只读存储库.反过来,远程用户也会从中受益.这样可以提高从远程站点的下载速度.上传仍然会保持不变,但似乎下载速度是您主要关注的问题.

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.

这篇关于git服务器复制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆