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

Re: Delete a commit

From
Andreas Schwab <schwab@linux-m68k.org>
Date
Dec 21, 2009, 18:17 UTC
Message-ID
<m2bphsdwds.fsf@igel.home>
In-Reply-To
<hgocfi$pge$1@ger.gmane.org>
Johan 't Hart <johanthart@gmail.com> writes:
Show 10 quoted lines
> Bertram Scharpf schreef:
>> Hi,
>
>>   % 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)
Except through the reflog, most likely.
Andreas.
-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
Previous: Johan 't HartNext: Bertram Scharpf
Message 7 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.