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

Re: [PATCH] Create 'git gc' to perform common maintenance operations.

From
Linus Torvalds <torvalds@osdl.org>
Date
Dec 27, 2006, 07:12 UTC
Message-ID
<Pine.LNX.4.64.0612262312170.4473@woody.osdl.org>
In-Reply-To
<20061227070541.GA22982@spearce.org>
On Wed, 27 Dec 2006, Shawn O. Pearce wrote:
Show 6 quoted lines
>
> Junio asked for a 'git gc' utility which users can execute on a
> regular basis to perform basic repository actions such as:
> 
>  * prune
>  * repack -a -d

You should do "repack -a -d" _before_ pruning, because then pruning will be much more efficient (thanks to a more efficient repo format).

		Linus
Previous: Shawn O. Pearce
Message 2 of 2 in “Create 'git gc' to perform common maintenance operations.”
  1. Create 'git gc' to perform common maintenance operations.Shawn O. Pearce, Dec 27, 2006
  2. Linus TorvaldsDec 27, 2006

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.