Git needs no introduction.

You probably have heard about how git efficiently stores the contents and the repository history on your hard drive. I decided to put it on a test!

$ svn co https://my.super.gigantic.svn.repo repo_svn
$ du -csh repo_svn
473 Mb

Now with git-svn:

$ git svn clone https://my.super.gigantic.svn.repo repo_git
$ cd repo_git
$ git gc
$ du -csh .
340 Mb

WTF???!!

And what’s the difference? The git repo contains all the history since revision 0 from this repository, offline!

So all the repository history on git is significantly smaller than the HEAD on svn? I really do love git…

About

photo of Ruben Fonseca

My name is Ruben Fonseca. I'm a Computer Science and Systems Engineer from Portugal that loves FLOSS.

I'm currently an Open Source Consultant at Lisbon, Portugal. This blog is about my daily geek life.

You can contact me anytime at or via LinkedIn:

View Ruben Fonseca's profile on LinkedIn

Feeds

Music