From: "Björn Steinbrink" <B.Steinbrink@gmx.de>
To: Sean Brown <seanmichaelbrown@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: git repository size vs. subversion repository size
Date: Sat, 5 Apr 2008 00:17:28 +0200 [thread overview]
Message-ID: <20080404221728.GA30728@atjola.homenet> (raw)
In-Reply-To: <1086fb5f0804041502s7ab12202y3b0ec3640425eff@mail.gmail.com>
On 2008.04.04 18:02:56 -0400, Sean Brown wrote:
> Last night I decided to see what storage size differences I might see
> between an svn repo and a git one. So I imported a highly used
> subversion repository into git and was shocked to see how huge the git
> version was. I used a repo that has a lot of branches and tagged
> releases just to make sure importing into git would in fact keep all
> of the history. It did keep the history, but the total disk usage was
> very different:
>
> $subversionbox # du -hs ./my_sample_website/
> 67M ./my_sample_website
>
> $localhost # du -hs ./git-samplesite/
> 3.6GB ./git-samplesite/
How much of that is in the .git/svn directory? The contents of that
directory are used to map git commits to svn revision and git versions
before 1.5.4 had a quite space consuming file format for that. The new
format is a lot better. If you want to switch completely, you can even
just delete the .git/svn directory, as that's only required as long as
you want to interact with the corresponding svn repository.
And finally, you might want to repack to repository once after the
initial import, to get a smaller repo. Something like:
git repack -a -d -f --window=100 --depth=100
Björn
next prev parent reply other threads:[~2008-04-04 22:18 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-04 22:02 git repository size vs. subversion repository size Sean Brown
2008-04-04 22:17 ` Björn Steinbrink [this message]
2008-04-04 23:49 ` Stephen Bannasch
2008-04-05 0:01 ` Steven Walter
2008-04-05 0:04 ` Stephen Bannasch
2008-04-05 0:18 ` Björn Steinbrink
2008-04-14 15:28 ` Eric Hanchrow
2008-04-05 2:27 ` Sean Brown
2008-04-05 2:34 ` Björn Steinbrink
2008-04-13 9:57 ` Jan Hudec
2008-04-05 3:11 ` Shawn O. Pearce
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080404221728.GA30728@atjola.homenet \
--to=b.steinbrink@gmx.de \
--cc=git@vger.kernel.org \
--cc=seanmichaelbrown@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox