Git存储库设置与二进制文件 [英] Git repository setup with binaries

查看:86
本文介绍了Git存储库设置与二进制文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的公司正在考虑实施Git,但我有一个问题,那就是设置它的最佳方式。我们有3个站点,并计划使用Gerrit2创建镜像。我们的存储库大约2GB,我们希望开始添加二进制文件。尽管如此,我很关心空间使用情况。我不介意是否所有版本的二进制文件都存储在少数几个位置,但我想确保它们不会阻塞克隆操作。



I理解Git使用硬链接,但我认为这只有在我们在每个挂载中放置一个存储库副本时才有效。有更好的选择,如果有的话,什么是折衷?我正在查看的选项是--shared和--reference。

解决方案

,使用一个单独的repo通过git子模块来安装二进制文件。这对于那些拥有大量巨大的.wav文件的IVR系统已经奏效。如果您需要进一步澄清,请随时与我联系。



以下是对他们的一个很好的写作:



http://progit.org/book/ch6-6.html



希望这有助于

My company is considering implementing Git but I have a question about what the best way would be to set it up. We have 3 sites and are planning on using Gerrit2 to create mirrors. Our repository is about 2GB and we would like to start adding binaries to it. I'm concerned about the space usage though. I don't mind if all versions of the binaries are stored in a handful of locations but I want to make sure that they don't bog down clone operations.

I understand that Git uses hard links but I think that will only work if we place a copy of the repository on every mount. Are there better options and if so what are the tradeoffs? Options that I'm looking at are "--shared" and "--reference".

解决方案

To just use native git, use a separate repo to house the binaries via git submodules. This has worked for me on IVR systems which had a ton of gigantic .wav files. If you need further clarification, feel free to contact me.

Here's a good write up on them:

http://progit.org/book/ch6-6.html

hope this helps

这篇关于Git存储库设置与二进制文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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