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

Re: garbage collection following a "git remote rm"?

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 15, 2018, 16:00 UTC
Message-ID
<xmqqh8iqagyv.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<alpine.LFD.2.21.1809151027350.17253@localhost.localdomain>
"Robert P. J. Day" <rpjday@crashcourse.ca> writes:
>   is there a command (git fsck?) that would display exclusively
> objects in the object store corresponding to objects that are suddenly
> unreferenced due to the removal of a remote?

fsck gives you dangling ones (and can be told to give you unreachable ones, too) but the list will be more like "these are unreachable, period". It won't be like "these are the ones that recently became unreacable, and I am not listing ones that were unreachable already in N hours ago".

Previous: Robert P. J. Day
Message 2 of 2 in “garbage collection following a "git remote rm"?”
  1. Robert P. J. DaySep 15, 2018
  2. Junio C HamanoSep 15, 2018

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.