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

Huge pack file from small unpacked objects

From
NTNick Triantos <nick@perceptivepixel.com>
Date
Dec 22, 2009, 06:19 UTC
Message-ID
<75B8C0BEE0AE2A44AA971D218D9FE99E6B06F030@VMBX125.ihostexchange.net>
In-Reply-To
<404585ED79625A40AB5A9884ECA9A63B3E02083F@VMBX125.ihostexchange.net>
Hi,
(re-sending.. I'm not sure if my last send made it to the list, I got a bounce because it had HTML.)
I recently created a repo from SVN via git-svn.  The bare repo was about ~600MB.  I cloned it, and on the clone, I added 2 small files (.gitignore and .gitattributes) to a branch, merged them to master, and pushed that back to the origin.  The cloned repo remains at about 600MB, while my origin repo (the one from svn) is now about 2.4GB.  I found that it created a file in objects/pack which accounts for this huge size.
I've tried running 'git repack -a -d' but that didn't shrink the size of this pack file.
Any ideas why the pack file is so huge?  Anything I can do to shrink it?  My coworkers are understandably unhappy that the repo is so huge now (makes for very slow pulls)

thanks, -Nick

Previous: Junio C HamanoNext: Nicolas Pitre
Message 5 of 6 in “RE: Huge pack file from small unpacked objects”
  1. Nick TriantosDec 16, 2009
  2. B Smith-MannschottDec 22, 2009
  3. Nick TriantosDec 22, 2009
  4. Junio C HamanoDec 22, 2009
  5. Huge pack file from small unpacked objectsNick Triantos, Dec 22, 2009
  6. Nicolas PitreDec 22, 2009

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.