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

Re: Delete a commit

From
BSBertram Scharpf <lists@bertram-scharpf.de>
Date
Dec 21, 2009, 21:01 UTC
Message-ID
<20091221210137.GA17695@marge.bs.l>
In-Reply-To
<hgocfi$pge$1@ger.gmane.org>
Hi,
Am Montag, 21. Dez 2009, 18:49:36 +0100 schrieb Johan 't Hart:
Show 13 quoted lines
> Bertram Scharpf schreef:
>
>>   % git fsck --lost-found
>>   dangling commit 6abc221327e896c850c56dafae92277bcfe68e2b
>> It is still there. This is the one I want to delete.
>
> It is not in the history of any head anymore, so you could consider it 
> deleted. ('git log' does not show this commit)
>
> If you want to prune unreferenced objects, try:
> git prune
>
> ('git help prune' for options)

In the meantime I detected the gc.pruneExpire config variable. I didn't get that to work on all versions that I have installed on different machines, but I just wanted to understand what has to happen with the commit.

Thank you!
Bertram
-- 
Bertram Scharpf
Stuttgart, Deutschland/Germany
http://www.bertram-scharpf.de
Previous: Andreas Schwab
Message 8 of 8 in “Delete a commit”
  1. Bertram ScharpfDec 19, 2009
  2. James P. Howard, IIDec 19, 2009
  3. Johan 't HartDec 20, 2009
  4. Bertram ScharpfDec 20, 2009
  5. Pascal ObryDec 20, 2009
  6. Johan 't HartDec 21, 2009
  7. Andreas SchwabDec 21, 2009
  8. Bertram ScharpfDec 21, 2009

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.