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

Re: Problems getting rid of large files using git-filter-branch

From
ØHØyvind Harboe <oyvind.harboe@zylin.com>
Date
Jan 6, 2009, 22:36 UTC
Message-ID
<c09652430901061436w36c013ep938e9cfba43140c9@mail.gmail.com>
In-Reply-To
<alpine.DEB.1.00.0901062319070.30769@pacific.mpi-cbg.de>

On Tue, Jan 6, 2009 at 11:20 PM, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:

Show 7 quoted lines
> Hi,
>
> On Tue, 6 Jan 2009, Øyvind Harboe wrote:
>
>> Q1: How can I figure out what it is in .git that takes so much space?
>
> If it is a pack that is taking so much space:
it is.
>
> $ git verify-pack -v $PACK | grep -v "^chain " | sort -n -k 4

I have never used the git verify-pack command, but I'm pretty sure the "Terminated" string isn't the normal output :-)

$ git verify-pack -v .git/objects/pack/pack-1e039b82d8ae53ef5ec3614a3021466663cc70a4 Terminated

This is running git version 1.6.1. on CentOS on a virtual machine. I'm not quite sure how to debug this. I'm sure I've done something wrong when I installed git. I'm just a humble user of git trying to convert from cvs/svn.

> and then for the last few lines do a
>
> $ git rev-list --all --objects | grep $SHA1

I was able to run this procedure on a different machine than the server and I can then tell which objects take up all the space.

However, I'm unnerved by git verify-pack "Terminated"'ing on me above and I'll have to sort that out before I can think about using git in production.

Thanks for the pointers though! They definitely answered my questions!
>
> Hth,
> Dscho
>
-- 
Øyvind Harboe
http://www.zylin.com/zy1000.html
ARM7 ARM9 XScale Cortex
JTAG debugger and flash programmer
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 3 of 13 in “Problems getting rid of large files using git-filter-branch”
  1. Øyvind HarboeJan 6, 2009
  2. Johannes SchindelinJan 6, 2009
  3. Øyvind HarboeJan 6, 2009
  4. Johannes SchindelinJan 7, 2009
  5. Øyvind HarboeJan 7, 2009
  6. Johannes SchindelinJan 7, 2009
  7. Sitaram ChamartyJan 7, 2009
  8. Nicolas PitreJan 6, 2009
  9. Øyvind HarboeJan 6, 2009
  10. Stephen R. van den BergJan 6, 2009
  11. Nicolas PitreJan 7, 2009
  12. Øyvind HarboeJan 7, 2009
  13. Nicolas PitreJan 7, 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.