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

How do I regularly clean up .git/objects/pack/tmp_* files?

From
Dun Peal <dunpealer@gmail.com>
Date
Jun 3, 2017, 20:53 UTC
Message-ID
<CAD03jn5CEwZ0H+UKO4yW3PoL+XPXcwUGnehhv-KyBYQCYzAXGQ@mail.gmail.com>
Hi there,

I try to follow the best practice of regular repo maintenance, which afaik consists of running `git gc` every week or so.

So I thought I had a well-maintained repository, and was quite surprised to discover some very large .git/objects/pack/tmp_* files, which apparently are entirely needless and should be cleaned up, but `git gc` doesn't clean them.

Is there another command I should regularly run, instead or in addition to `git gc`, to keep my repo well-maintained, and specifically, to remove such unnecessary files from my .git directory?

Thanks, D.
Next: Jeff King
Message 1 of 2 in “How do I regularly clean up .git/objects/pack/tmp_* files?”
  1. Dun PealJun 3, 2017
  2. Jeff KingJun 4, 2017

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.