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

garbage collection following a "git remote rm"?

From
Robert P. J. Day <rpjday@crashcourse.ca>
Date
Sep 15, 2018, 14:31 UTC
Message-ID
<alpine.LFD.2.21.1809151027350.17253@localhost.localdomain>
  i've never checked before, but i assume that if i add a remote, then
fetch from it and subsequently remove that remote, all of the
now-unreferenced remote tracking branches in the object store will
eventually be discarded by garbage collection, yes?
  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? i was just curious as it
would be neat to demo that in a class.
rday
-- 
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                  http://crashcourse.ca/dokuwiki

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================
Next: Junio C Hamano
Message 1 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.