Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Git need more space than SVN? [duplicate]

Tags:

git

Possible Duplicate:
How much space do I need for Git vs SVN?

As I know an important difference between Git and SVN is that: "SVN is delta storage system - it stores the differences between one commit and the next, while Git doesn't do this - it stores a snapshot of what all the files in your project look like in the tree structure each time you commit".

So, does this mean Git need more space than SVN, because it stores all the snapshots instead of delta?

like image 870
Dagang Avatar asked Dec 28 '11 15:12

Dagang


1 Answers

I think you have it backwards, at least as far as how it shakes out on disk.

With SVN, each branch you check out is a full copy plus deltas. So two branches means two complete filesets PLUS all the SVN diff info.

Git, on the other hand, keeps a single copy of the files plus all the snapshots containing the diff info. So for multiple branches, Git will always be smaller.

like image 85
Mathletics Avatar answered Oct 06 '22 21:10

Mathletics