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

Related Posts

You may be interested in these posts too:

2 Comments | rss | atom | xml | json

  1. avatar Jakub Narebski Wed 05, 2008 08:57

    And that’s without repacking git repository at the end, by running “git gc—prune”, or git-repack with appropriate options (perhaps selected to pack repo tightly).

  2. avatar Ruben Fonseca Wed 05, 2008 11:00

    @Jankub:

    git gc—prune—aggressive reduced the repository size to 300Mb!! AMAZING!!

new comment New Comment