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

[PATCH,RFC] make it easier for people who just want to get rid of 'git gc --auto'

From
Nicolas Pitre <nico@cam.org>
Date
Mar 19, 2008, 21:06 UTC
Message-ID
<alpine.LFD.1.00.0803191703280.2947@xanadu.home>

Give a direct hint to those who feel highly annoyed by the auto gc behavior.

Signed-off-by: Nicolas Pitre <nico@cam.org>
---
diff --git a/Documentation/git-gc.txt b/Documentation/git-gc.txt
index 229a7c9..eb3a1f8 100644
--- a/Documentation/git-gc.txt
+++ b/Documentation/git-gc.txt
@@ -19,8 +19,16 @@ created from prior invocations of linkgit:git-add[1].
 
 Users are encouraged to run this task on a regular basis within
 each repository to maintain good disk space utilization and good
-operating performance. Some git commands may automatically run
-`git-gc`; see the `--auto` flag below for details.
+operating performance.
+
+Some git commands may automatically run `git-gc`; see the `--auto` flag
+below for details. If you know what you're doing and all you want is to
+disable this behavior permanently without further considerations, just do:
+
+----------------------
+$ git config --global gc.auto 0
+$ git config --global gc.autopacklimit 0
+----------------------
 
 OPTIONS
 -------
Next: Junio C Hamano
Message 1 of 3 in “make it easier for people who just want to get rid of 'git gc --auto'”
  1. make it easier for people who just want to get rid of 'git gc --auto'Nicolas Pitre, Mar 19, 2008
  2. Junio C HamanoMar 19, 2008
  3. Nicolas PitreMar 19, 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.