git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git repository size vs. subversion repository size

From
Sean Brown <seanmichaelbrown@gmail.com>
Date
Apr 4, 2008, 22:02 UTC
Message-ID
<1086fb5f0804041502s7ab12202y3b0ec3640425eff@mail.gmail.com>

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/

Here are the steps I took (locally):

mkdir git-samplesite-tmp cd git-samplesite-tmp git-svn init http://subversion.myco.com/my_sample_website --no-metadata git config svn.authorsfile ~/Desktop/users.txt # mapped svn users to git users git-svn fetch git clone git-samplesite-tmp git-samplesite

I did this based on reading the documents in the git wiki, so I assumed they were "best practice." Did I do something wrong? If this is a normal amount of storage need increase, we'd likely not move to git based on the need for new hardware alone.

Any help would be appreciated.
Sean
Next: Björn Steinbrink
Message 1 of 11 in “git repository size vs. subversion repository size”
  1. Sean BrownApr 4, 2008
  2. Björn SteinbrinkApr 4, 2008
  3. Stephen BannaschApr 4, 2008
  4. Steven WalterApr 5, 2008
  5. Stephen BannaschApr 5, 2008
  6. Björn SteinbrinkApr 5, 2008
  7. Eric HanchrowApr 14, 2008
  8. Sean BrownApr 5, 2008
  9. Björn SteinbrinkApr 5, 2008
  10. Jan HudecApr 13, 2008
  11. Shawn O. PearceApr 5, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.