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

Re: How do I get rid of unneeded objects?

From
Kevin Daudt <me@ikke.info>
Date
Jan 19, 2019, 07:38 UTC
Message-ID
<20190119073808.GA14639@alpha>
In-Reply-To
<20190118224055.zpsz63b3gaxtwscu@dcvr>
On Fri, Jan 18, 2019 at 10:40:55PM +0000, Eric Wong wrote:
Show 10 quoted lines
> Steve Keller <keller.steve@gmx.de> wrote:
> >     $ git reflog expire --all
> 
> I've never used "git reflog" directly, but I think you need to
> add "--expire=all" to cover all time.  "--all" is only for all
> branches, so you need "--expire=<time>" is for a time range.
> 
> Fwiw, I use a single command:
> 
> 	git -c gc.reflogExpire=now gc --prune=all

Instead of --expire, you could also use --expire-unreachable, so that you don't get rid of your entire reflog.

Previous: Eric Wong
Message 3 of 3 in “How do I get rid of unneeded objects?”
  1. Steve KellerJan 18, 2019
  2. Eric WongJan 18, 2019
  3. Kevin DaudtJan 19, 2019

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.