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

Re: Repo cleanup problem

From
Karl Hasselström <kha@treskal.com>
Date
May 11, 2007, 08:19 UTC
Message-ID
<20070511081906.GA21093@diana.vm.bytemark.co.uk>
In-Reply-To
<vpqveezhjb0.fsf@bauges.imag.fr>
On 2007-05-11 10:10:43 +0200, Matthieu Moy wrote:
> Then, to have git-gc remove the old, bad, history, you need to remove
> any reference you have to it: branches and tags. git-branch -d and
> perhaps git-tag -d will tell you.

The reflog is on by default nowadays, which essentially means that dangling commits won't be pruned for 30 days or something -- unless you delete the references in the reflog as well. "git reflog expire" can probably help here.

-- 
Karl Hasselström, kha@treskal.com
      www.treskal.com/kalle
Previous: Matthieu MoyNext: Eugine Kosenko
Message 3 of 4 in “Repo cleanup problem”
  1. Eugine KosenkoMay 11, 2007
  2. Matthieu MoyMay 11, 2007
  3. Karl HasselströmMay 11, 2007
  4. Eugine KosenkoMay 11, 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.