From 7d1fae2764a932444e58e6730521d20bd4d6d517 Mon Sep 17 00:00:00 2001 From: Alberto Bertogli Date: Sun, 13 Apr 2008 10:07:47 -0300 Subject: [PATCH] Update the "Automatic compression" entry to reflect the new git gc behaviour git gc is now automatically run by default, update the paragraph accordingly. Signed-off-by: Alberto Bertogli --- secrets.txt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/secrets.txt b/secrets.txt index 6f11985..16c5a69 100644 --- a/secrets.txt +++ b/secrets.txt @@ -79,8 +79,5 @@ Actually, every clone could maintain such a counter, but this would probably not ==== Automatic Compression ==== -To save space, *git gc* should be run once in a while. Some complain because this must be done manually. But it is trivial to write scripts to run this program automatically. Ideally it should occur when during periods of little activity. +To save space, *git gc* should be run once in a while. Git will automatically run it for you when it considers it's appropriate (which depends on how frequent you commit, and is usually less than once per month). -For working repositories, not running the git garbage collector at all may be wiser, because you can restore accidentally deleted commits. - -In this sense, the fact that you choose when garbage collection occurs is a blessing. On busy, official repositories, you can setup a script to frequently run *git gc* while on your own machine, you might choose never to run it (so you can walways undo a mistake), and perhaps opt for an occasional *git repack* instead. -- 2.11.4.GIT