如何搭建git镜像环境?
随着我们慢慢从 SVN 迁移到 GIT,我们正在考虑创建一个 git 服务器集群,以卸载通过 WAN 进行的克隆,并在出现问题时创建冗余或热备用。我们的主要要求之一是我们可以提交给任何 gitserver,后者将在层次结构中进一步复制它。
当我们同时在多达 3 个大陆进行开发时,我不太信任使用 rsync/crontab 的 git 克隆,因为我相信同时在多个服务器上提交可能会损坏存储库(或者给 git令人头疼的是如何合并更改)。此类部署的最佳实践是什么?有人有提示或指示吗?当我们迁移到 Git 时,Wandisco 的 SVN 集群并没有削减它。
As we are slowly moving from SVN to GIT we are looking into creating a cluster of git servers both to offload cloning over our wan, and to create redundancy or a hot standby in case of issues. One of our main demands is that we can commit to any of the gitserver, who would replicate it further up in the hierarchy.
As we develop as in many as 3 continents simultaneously i don't place a lot of trust in using rsync/crontab'ed git clones, as i believe commits on more than one server at the same time might corrupt the repositories (or give git a headache on how to merge the changes) . What is the best practices around such a deployment? Anyone with tips or pointers? Wandisco's SVN cluster does not cut it as we are migrating to Git.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于这样的数据传播,我建议使用
git bundle
(这将包含标签和分支)因为:For such a propagation of data, I would recommend using
git bundle
(which would include tags and branches) because: