Re: Delete a commit
- From
- Bertram 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