How much space do I need for Git vs SVN?

前端 未结 2 1862
我寻月下人不归
我寻月下人不归 2021-01-11 18:07

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 G

2条回答
  •  天涯浪人
    2021-01-11 18:49

    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.

提交回复
热议问题