Git vs SVN需要多少空间? [英] How much space do I need for Git vs SVN?

查看:141
本文介绍了Git vs SVN需要多少空间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们目前使用Subversion作为我们的源代码库。我们正在转换到Git的规划阶段。我们的Subversion版本库目前是19Gb。 Git仓库如何与磁盘空间要求的Subversion进行比较?我的19Gb svn仓库将在Git存储库中转换成什么?

解决方案

很难猜测Git存储库的确切大小,因为它取决于几个因素,例如




  • 存储对象的类型
  • 分支,标记的数量
  • 相似/重复对象的数量



Git有一个很好的压缩算法,根据我过去的经验,它能够减小一个SVN资源库高达10倍。 下面是一些例子



然而,最好的方法是自己尝试一下。在你的本地机器上,你可以将SVN仓库转换成Git。 / subversion reponame

然后运行 git gc 和看看你需要多少空间才能开始。


We are currently using Subversion as our source code repository. We are in the planning phase of converting to Git. Our Subversion repository is currently 19Gb. How does a Git repository compare to Subversion on disk space requirements? What will my 19Gb svn repository translate to in a Git repository.

解决方案

It's hard to guess the exact size that your Git repository will take because it depends on several factors, for instance

  • type of stored objects
  • number of branches, tags
  • number of similar/duplicate objects

Git has a good compression algorithm and, from my past experience, it was able to reduce the size of a SVN repository up to 10 times. Here's some examples.

However, the best way is to try it yourself. On your local machine you can convert the SVN repository into Git

$ git-svn clone -s http://path/to/subversion reponame

then run git gc and see how much space you need to start.

这篇关于Git vs SVN需要多少空间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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