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

Re: .git grows after git-gc?

From
Nicolas Pitre <nico@cam.org>
Date
Apr 24, 2007, 14:56 UTC
Message-ID
<alpine.LFD.0.98.0704241051330.12375@xanadu.home>
In-Reply-To
<200704241535.32623.andyparkins@gmail.com>
On Tue, 24 Apr 2007, Andy Parkins wrote:
Show 9 quoted lines
> > I think that (2) is the most probable cause of repack growth in your
> > case.  Just try:
> >
> > 	git config --global repack.usedeltabaseoffset true
> > 	git gc
> >
> > and you should get that 2MB back, possibly a bit more.
> 
> Strangely enough - I didn't - stayed at 97MB.  It's probably (1) then.
Well... to be sure, also try:
	git config --global repack.usedeltabaseoffset false
	git gc

and verify that the repository actually grew. If it stays the same then something is not right.

Nicolas
Previous: Andy Parkins
Message 4 of 4 in “.git grows after git-gc?”
  1. Andy ParkinsApr 24, 2007
  2. Nicolas PitreApr 24, 2007
  3. Andy ParkinsApr 24, 2007
  4. Nicolas PitreApr 24, 2007

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.